Linux sftp command usage

Linux sftp command usage

Concept of SFTP

sftp is the abbreviation of Secure File Transfer Protocol, a secure file transfer protocol. It can provide a secure network encryption method for transferring files. sftp has almost the same syntax and functionality as ftp. SFTP is a part of SSH and is a secure way to transfer files to your Blogger server. In fact, the SSH software package already includes a secure file information transfer subsystem called SFTP (Secure File Transfer Protocol). SFTP itself does not have a separate daemon process. It must use the sshd daemon process (the default port number is 22) to complete the corresponding connection and reply operations. So in a sense, SFTP is not like a server program, but more like a client program. SFTP also uses encryption to transmit authentication information and transmitted data, so using SFTP is very safe. However, since this transmission method uses encryption/decryption technology, the transmission efficiency is much lower than that of ordinary FTP. If you have higher requirements for network security, you can use SFTP instead of FTP. (From Baidu Encyclopedia)

Here we use sftp to upload and download files on the remote server and local computer.

usage:

Connect to the remote server:

sftp username@ip

Press Enter and enter the server password to connect successfully.

Upload the file to the server:

put [address of local file] [location where file is stored on server]

Download the file on the server to your local computer:

get [location where the file is stored on the server] [location where the file is to be stored locally]

get [location where the file is stored on the server] [location where the file is to be stored locally]

Finally, let me share a command to return to the previous directory in Linux:

cd ..

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Summary of Linux sftp command usage
  • Detailed introduction to Linux commands scp and sftp
  • SFTP user permission setting conditions and implementation commands under Linux

<<:  How to prevent users from copying web page content using pure CSS

>>:  18 Amazing Connections Between Interaction Design and Psychology

Recommend

Detailed explanation of Nginx current limiting configuration

This article uses examples to explain the Nginx c...

How to pull the docker image to view the version

To view the version and tag of the image, you nee...

The difference between redundant and duplicate indexes in MySQL

MySQL allows you to create multiple indexes on a ...

Learn Node.js from scratch

Table of contents url module 1.parse method 2. fo...

Introduction to Linux compression and decompression commands

Table of contents Common compression formats: gz ...

Mysql 5.6 adds a method to modify username and password

Log in to MySQL first shell> mysql --user=root...

How to preview pdf file using pdfjs in vue

Table of contents Preface think Library directory...

Complete MySQL Learning Notes

Table of contents MyISAM and InnoDB Reasons for p...

How to rename the table in MySQL and what to pay attention to

Table of contents 1. Rename table method 2. Notes...

WeChat applet realizes the effect of shaking the sieve

This article shares the specific code of the WeCh...

Detailed explanation of MySQL phantom reads and how to eliminate them

Table of contents Transaction Isolation Level Wha...

Linux Jenkins configuration salve node implementation process diagram

Preface: Jenkins' Master-Slave distributed ar...

Advantages and disadvantages of Table layout and why it is not recommended

Disadvantages of Tables 1. Table takes up more byt...

Learn Hyperlink A Tag

ask: I have styled the hyperlink using CSS, but i...

Docker network principles and detailed analysis of custom networks

Docker virtualizes a bridge on the host machine. ...