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

Ubuntu installation Matlab2020b detailed tutorial and resources

Table of contents 1. Resource files 2. Installati...

Detailed explanation of how to manually deploy a remote MySQL database in Linux

1. Install mysql Run the following command to upd...

Detailed explanation of Object.create instance usage in js

1. Create a new object using the Object.create() ...

MySQL's method of dealing with duplicate data (preventing and deleting)

Some MySQL tables may contain duplicate records. ...

Analysis of two implementation methods for adding static routing in Linux

Command to add a route: 1.Route add route add -ne...

Detailed explanation of how to mount remote file systems via SSH on Linux

Features of SSHFS: Based on FUSE (the best usersp...

Mysql sets boolean type operations

Mysql sets boolean type 1. Tinyint type We create...

Coexistence of python2 and python3 under centos7 system

The first step is to check the version number and...

How to modify the "Browse" button of the html form to upload files

Copy code The code is as follows: <!DOCTYPE HT...

Detailed explanation of JQuery selector

Table of contents Basic selectors: Level selector...

Analysis of the project process in idea packaging and uploading to cloud service

one. First of all, you have to package it in idea...

Implementation of crawler Scrapy image created by dockerfile based on alpine

1. Download the alpine image [root@DockerBrian ~]...

How to reduce the memory and CPU usage of web pages

<br />Some web pages may not look large but ...

Detailed explanation of HTML page header code example

Knowledge point 1: Set the base URL of the web pa...