Zolved community solution Createarticle_iconnew articleEditarticle_iconedit article

How to install SSH On Ubuntu

Just follow the process to install SSH Server for remote administration service as shown in this article. You can then connect, copy files etc. from remote and local machine....

Installing ssh server on Ubuntu is very easy. Just follow the below steps.

Once you install ssh server, you can run commands to transfer files or folders between remote machine and local machine.


       To install ssh server:

       Go to Applications > Accessories > Terminal
      
      

      At the terminal type the following command
:sudo apt-get install ssh
    
      
      
         SSH Server is successfully installed on your machine now.

Note: SSH SERVER needs to be installed before you can connect to remote server and transfer files between local machine and remote machine.

Note:
For each of the steps described below, make sure to go to
Applications > Accessories > Terminal first. Then at the terminal, type the command as mentioned.

  • How to connect to remote machine using Ubuntu

    $ssh username@192.156.0.13 (192.156.0.13 is the IP Address of the remote machine.)

  • How to copy files from remote Ubuntu machine to local machine

    $scp -r username@192.168.0.13:/home/username/remotefile.txt.

  • How to copy files from local machine to remote Ubuntu machine.

    $scp -r localfile.txt username@192.168.0.13:/home/username

  • How to copy files/folders from local machine into remote Ubuntu machine (using rsync)

    $rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/

    In the above command, local file is localfile.txt

    IP Address of remote Ubuntu machine is : 192.168.0.13

    The file will be saved in /home/username folder on remote ubuntu machine.

  • How to copy files/folders from remote Ubuntu machine into local machine (using rsync)

    $rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.13:/home/username/remotefile.txt.

    Remote file on remote Ubuntu machine is : remotefile.txt

    This will be copied into current directory on local machine.

Just by installing ssh server on Ubuntu, you can now run commands to transfer files or folders between remote machine and local machine.
copyright © 2007, IPTouch, Inc.