SFTP is an interactive file transfer program. It is similar to FTP, But it performs encrypted transmission, which is more secure than FTP. The following describes how to remotely connect to the host, upload and download files, and perform related operations.
Install apt-Get install SFTP In ubuntu. Make sure that you have sufficient permissions to install this program.
How to Use the SFTP command in Linux.
For example, if the IP address of the remote host is 202.206.64.33 or the domain name is www.yiihisa.com.cn, the user name is yiihisa.
, In command line mode: SFTP yiihisa@202.206.64.33 or yiihisa@www.yiihisa.edu.cn. Press enter to enter the password. Enter prompt
SFTP>
If you log on to a remote machine not to upload and download files, you must modify some files on the remote host. Yes
SSH yiihisa@202.206.64.33 (in fact, SFTP is a program of SSH .)
SFTP> Get/var/www/yiihisa/index. php/home/yiihisa/
This statement downloads index. php from the/var/www/yiihisa/directory of the remote host to the local/home/yiihisa/directory.
SFTP> put/home/yiihisa/downloads/linuxgl.pdf/var/www/yiihisa/
This statement uploads the linuxglisa file in the local/home/yiihisa/downloads/directory to the remote host/var/www/yiihisa/directory.
If you do not know the directory of the remote host, the PWD command can help you query the current path of the remote host. Query the current working directory of the Local Machine lpwd.
CD can be used to change the path of the local device, and LCD can be used to change the path of the local device;
Ls RM rmdir mkdir can all be used. Similarly, L is used to call the local machine, that is, LLS lrm.
To exit SFTP, use exit, quit, or bye. For details, refer to man SFTP.
If it is not convenient in command line mode, sudo apt-Get install gftp can be used. It is much easier to operate on the GUI. ......