How to use SecureCRT to upload and download files from Linux server? The second method - SFTP

1. Click SecureCRT--File--Connect to SFTP tab page (or shortcut key: Alt+P) to enter SFTP, as shown below:

2. Then use the commands lcd, pwd, put, get to upload and download files.

As shown in the figure above, after entering SFTP

1) First set the local directory (lcd D:\download), and then enter the file access directory of the Linux server (cd /opt/software), pwd can view the current directory.

2) Upload files to the Linux server:

sftp> put aa.txt

此时,会把本地 D:\download 目录中的aa.txt文件上传至Linux服务器的目录下:/opt/software 

3) Download the Linux server file to the local:

sftp> get aa.txt

此时,会把aa.txt文件从Linux服务器的目录 /opt/software 上下载至本地 D:\download  

Guess you like

Origin blog.csdn.net/caojschy/article/details/128726054