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

MySQL 5.6 compressed package installation method

There are two installation methods for MySQL: msi...

Detailed explanation of MySQL semi-synchronization

Table of contents Preface MySQL master-slave repl...

Some tips on speeding up the development of WeChat mini-programs

1. Create a page using app.json According to our ...

HTML input box optimization to improve user experience and ease of use

In order to improve user experience and ease of us...

Analysis of three parameters of MySQL replication problem

Table of contents 01 sql_slave_skip_counter param...

Practical record of optimizing MySQL tables with tens of millions of data

Preface Let me explain here first. Many people on...

2017 latest version of windows installation mysql tutorial

1. First, download the latest version of MySQL fr...

Detailed explanation of Angular routing basics

Table of contents 1. Routing related objects 2. L...

MySQL 5.7.21 installation and configuration tutorial under Window10

This article records the installation and configu...

The complete implementation process of Sudoku using JavaScript

Table of contents Preface How to solve Sudoku Fil...

How to use explain to query SQL execution plan in MySql

The explain command is the primary way to see how...