SFTP is the abbreviation for secure File transferprotocol, security ftp. You can provide a secure encryption method for transferring files. SFTP and FTP have almost the same syntax and functionality. SFTP for
SSH
part of this is a secure way to transmit files to the blogger server. In fact, in the SSH package, a secure file transfer subsystem called SFTP (secure file Transfer Protocol) has been included, and SFTP itself does not have a separate daemon. It must use the sshd daemon (the port number defaults to 22) to complete the appropriate connection operation, 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 it is safe to use SFTP. However, because this type of transmission uses encryption/
Decryption Technology
, so
Transmission Efficiency
than the ordinary
FTP
to be much lower, you can use SFTP instead of FTP if you are more demanding for network security.
One, the connection way
There are two common ways, a direct use of SFTP to connect remote server IP
The other is to log on to the remote server before opening the SFTP function
1, sftp [remotehost IP]
through the SFTP connection [host], the port is the default 22, the user is the Linux currently logged in user.
Xshell 5 (Build 0806)
Copyright (c) 2002-2015 Netsarang Computer, Inc. All rights reserved.
Type ' help ' to the learn how-to-use Xshell prompt.
[c:\~]$ sftp192.168.56.101
Connecting to 192.168.56.101:22 ...
Connection established.
To an escape to the local shell, press ' ctrl+alt+] '.
Your current Local Directory is
C:\Users\FieldYang\Documents\NetSarang\Xshell\Sessions
Type ' help ' to browse available commnands.
sftp:/root>
2, Sftp-oport=[port][remotehost IP]
connect to the remote server via SFTP, specify the port, and the user is currently logged on to the Linux user.
3, Sftp[user]@[remotehost IP]
connect the remote server via SFTP, the port is the default 22, and the user is specified.
Xshell 5 (Build 0806)
Copyright (c) 2002-2015 Netsarang computer,inc. All rights reserved.
Type ' help ' to the learn how-to-use Xshell prompt.
[c:\~]$ sftp fieldyang@192.168.56.101
Connecting to 192.168.56.101:22 ...
Connection established.
To an escape to the local shell, press ' ctrl+alt+] '.
Your current Local Directory is
C:\Users\FieldYang\Documents\NetSarang\Xshell\Sessions
Type ' help ' to browse available commnands.
sftp:/home/fieldyang>
4, sftp-oport=[port][user]@[remotehost IP]
through SFTP connection [RemoteHost IP], the port is [ports], the user is [users].
5, through XSHELL5 and Linux to establish a connection, in the Graphical User panel window-> transmission of new files, open the Xftp character interface, such as the figure, directly close can open a sftp window
Second, use
1. Basic Usage
sftp:/root> Help
bye Finish your SFTP session
exit SFTP
CD Change your remote workingdirectory
Change remote server working directory
Clear Clear screen
Clear Screen
exit Finish your SFTP session
Explore Explore your local directory
Import Local Directory
Get Download a file from theserver to your local machine
Downloading files from a remote server to this computer
Help give help
Find help
LCD change and/or print localworking directory
Toggle Local Current working directory
lls List Contents of a localdirectory
lists the contents of the local current directory
lpwd Print your local workingdirectory
Print Current working directory
ls List contents of a remotedirectory
List The contents of the Remote server directory
mkdir Create a directory on Theremote server
Create a directory on the remote server
mv Move or rename a file onthe remote server
to move or rename a remote server file
Put upload a file from yourlocal machine to the server
upload a local file to a remote server
pwd Print your remote workingdirectory
print a remote server work path
quit finish your SFTP session
Exit
rename move or rename a file onthe remote server
to move or rename a remote server file
RM Delete a file
Delete a file