Tectia scpg3 sftpg3 sftp操作get/put

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:\Users\xxx\report.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\tomcat

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:\openSource\dubbo

sftp> cd /opt

sftp> put dubbo-admin-2.5.4.warzookeeper-3.4.6.tar.gz

posted @ 2020-03-03 16:36  tonggc1668  阅读(942)  评论(0编辑  收藏  举报