How To Sftp From Linux

In today’s technology-oriented world, transferring files over the network is a common task. One of the most secure ways to perform this task is using the Secure File Transfer Protocol (SFTP). This blog post will guide you on how to SFTP from a Linux machine to another system.

What is SFTP?

SFTP stands for Secure File Transfer Protocol. It is a method of transferring files between local and remote systems securely over a secure shell (SSH) data stream. This security is provided through the use of encryption, which ensures the data being sent and received is not readable if it is intercepted.

SFTP from Linux

Now, let’s take a look at the steps required to SFTP from a Linux machine.

Step 1: Installation

Ensure SSH and SFTP are installed on your Linux machine. Most Linux distributions come pre-installed with these tools. However, if your system does not have these tools, you can install them using the following command:

  sudo apt-get install openssh-client openssh-server

Step 2: Connect to the remote server

After ensuring that SSH and SFTP are installed on your machine, you can connect to the remote server using the sftp command, followed by the username and the IP address of the remote machine.

  sftp username@ip-address

Step 3: Transfer files

Once you’re connected, you can use the put command to upload a file from your local machine to the remote server, and the get command to download a file from the remote server to your local machine.

  put local-file-path
  get remote-file-path

Step 4: Close the connection

To close the SFTP connection, simply type exit and press enter.



SFTP offers a secure way to transfer files between different systems. This article has illustrated the process of using SFTP from a Linux machine. We hope this guide has been helpful for your file transferring needs.