Direct File-Sharing in Linux using SFTP

Setting up FileZilla and Connecting

Now, you can install FileZilla on the other machine graphically using an installed Software Manager or you can use the following commands in terminal:

sudo apt update
sudo apt install filezilla

Once installation is completed, run FileZilla and open the Site Manager using the top-left button in the control pane:

Open Site Manager in FileZilla

In the Site Manager window, click on New Site in the lower-left options:

Create New Site in FileZilla Site Manager

Then, to the left, set the options as shown but replace ip_or_hostname_of_ssh_pc with either the IP address on your network or the hostname your DNS uses to resolve to the PC running the SSH server, and replace your_username_on_ssh_pc with the username you use to log into the machine whose home directory houses the files you want to transfer from/to.

Creating New Site to use SFTP protocol in FileZilla

After you hit Connect, it will prompt you to have FileZilla remember the password for that connection just for that session and confirm you trust the other PC that you will have to accept. Then, you should see the /home/$user directory of the user you used the login for on the PC running the SSH server and be able to transfer files between that machine and the one your using FileZilla on. This is faster than copying and pulling from a remote drive on the local network and is much faster than having to copy onto a flash drive to use between the two machines.

Once you’re finished transferring files, you can stop the SSH server on the other PC with:

sudo systemctl stop ssh

And verify that it is both stopped and disabled with:

systemctl is-enabled ssh
systemctl is-active ssh

Both should return disabled and inactive if you do not want the SSH server started automatically each boot and you don’t want it running.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.