scpg3 C:/app-report.jar username@hostname:/opt/report/app-report.jar
scpg3 username@hostname:/opt/report/app-report.jar C:/app-report.jar
sftpg3 username@hostname
sftp> open user@server
sftp> sget /opt/app/logs/report.log C:Usersxxx
eport.log
sftp操作get/put
https://blog.csdn.net/weixin_41456835/article/details/78974350
1.2 常用命令
lcd 切换windows环境路径
cd 切换linux环境路径
get 下载linux资源到windows
put 上传windows资源到linux
quit 退出sftp
1.3 示例
sftp> lcd E:openSource omcat
sftp> cd /opt/
sftp> get apache-tomcat-7.0.65.tar.gz
Downloading apache-tomcat-7.0.65.tar.gzfrom /opt/apache-tomcat-7.0.65.tar.gz
100% 8659KB 8659KB/s00:00:00
/opt/apache-tomcat-7.0.65.tar.gz: 8866946bytes transferred in 0 seconds (8659 KB/s)
sftp> quit 退出
Good Bye.
sftp> pwd
/root
sftp> lpwd
C:/Users/ASUS-PC/Documents
sftp> lcd E:openSourcedubbo
sftp> cd /opt
sftp> put dubbo-admin-2.5.4.warzookeeper-3.4.6.tar.gz