Programming, tutorials, mechatronics, operating systems, and other tech stuff

File Transfer over network using SSH and File Manager

4 comments
There are many ways to transfer files over the network on linux ubuntu, by using samba server, http server, ftp, sftp, and many more. One of the most accessible among them and the one I will discuss this time is to use SFTP (SSH File Transfer Protocol). in other words, transfer files through SSH.

There are 3 basic requirements for this method:

  1. The network is set up in such a way so as to allow each computer to ping.

  2. SSH server on the computer that will be accessed must be installed, enabled, and can be accessed/login from another computer. For a guide to installing SSH Server, you can read in the article how to enable and configure SSH Server on ubuntu

  3. Applications such as file manager nautilus, nemo, thunar, etc. (in this example I use the default ubuntu Nautilus) already installed on the client computer to access.


How to connect file manager to SFTP


Method 1 of 2


Open file manager (in this example, nautilus).

Then click file menu or context menu (gear/cog icon on top-right of nautilus window). Then choose "Connect to server..." like in the picture below.



Then in the "connect to server" dialog, enter the destination address along with the sftp Protocol. In the example picture below I used the address 192.168.6.2, so the address is: sftp://192.168.6.2


If after clicking "Connect" nothing happens, maybe the addresses that you entered could not be accessed. Make sure that the ip address is ping-able and SSH server is running on that computer.

When the destination computer's SSH server using tcp port other than the default port of the ssh (port 22), then add the port number after the colon (:) for example sftp://192.168.6.2:1234



Then click the "Connect" button. And wait until the login proccess is success, the nautilus will open the home directory of the user that you use to login.
To enter another directory such as/,/var/www,/etc, press "Ctrl + L", and then in the address / location bar, delete addresses that point to the home directory. Example: sftp://192.168.6.2/home/asudahlah becomes sftp://192.168.6.2/or sftp://192.168.6.2/var/www

 

Method 2 of 2


This way more simple than the first. 😀 you just need to press "Ctrl + L", then enter the IP address of the destination and its protocol such as sftp://192.168.6.2/, and then press enter. And the login dialog will appear and you can read the next steps in the method 1. 😀 that's it.

P.S


Just like FTP, these methods uses client-server. Where the client can access the server, but not vice versa. However, you can delete, create, transmit, and retrieve files depending on the access rights / permission of the user you used when logged in.

In file manager, a connection that you create will just be treated as a directory as if in mount and is usually displayed on the sidebar.

4 comments :


  1. The second solution is very simple and clear, spaisbo for your work and for sharing your experience!
    Richard Brown best data rooms

    ReplyDelete
    Replies
    1. Thank you. :D
      Sorry, all images couldn't be displayed because they were lost during blog migration.

      Delete
  2. Data transfer rate of internet wasn't great during that time. Nowadays time has totally changed, several techniques are now formulated that can transfer giant size files and multiple docs via internet very easily.
    downloadshareitapp.com - shareit app for android

    ReplyDelete
  3. Become a new player in the casino good free blackjack I understood, I understood that on this site, luck will smile at me

    ReplyDelete