Summary of Linux sftp command usage

Summary of Linux sftp command usage

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.

Common command parameters

usage: sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
      [-o ssh_option] [-P sftp_server_path] [-R num_requests]
      [-S program] [-s subsystem | sftp_server] host
    sftp [user@]host[:file ...]
    sftp [user@]host[:dir[/]]
    sftp -b batchfile [user@]host

Common command display

Remote download/upload

# Connect to the remote server sftp [email protected]
# View the current server path lpwd
# View the remote server path [default user home directory]
pwd
# upload file put current path remote connection # download file get remote path current path

Log in

Upload:

shortcut key:

Alt+P

The above is all the knowledge points about the Linux sftp command introduced this time. For more information, please refer to the related articles below.

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

<<:  Example operation MySQL short link

>>:  How to use ES6 class inheritance to achieve a gorgeous ball effect

Recommend

A brief discussion on the whole process of Vue's first rendering

Table of contents 1. Vue initialization vue entry...

Detailed explanation of special phenomena examples of sleep function in MySQL

Preface The sleep system function in MySQL has fe...

MySQL 8.0.18 stable version released! Hash Join is here as expected

MySQL 8.0.18 stable version (GA) was officially r...

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

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

How to connect to virtual machine MySQL using VScode in window environment

1. Virtual Machine Side 1. Find the mysql configu...

HTML basic summary recommendation (text format)

HTML text formatting tags 標簽 描述 <b> 定義粗體文本 ...

How to use LibreOffice to convert document formats under CentOS

Project requirements require some preprocessing o...

The phenomenon of margin-top collapse and the specific solution

What is margin-top collapse Margin-top collapse i...

Implementing Markdown rendering in Vue single-page application

When rendering Markdown before, I used the previe...

CSS stacking and z-index example code

Cascading and Cascading Levels HTML elements are ...

HTML+CSS div solution when relative width and absolute width conflict

Div solution when relative width and absolute wid...