linux 机器之间 zssh, rz, sz互相传输
服务器端安装lrzsz:sudo yum install lrzsz
本地客户端安装lrzsz:
brew install lrzsz
本地客户端安装zssh:
brew install zssh
使用下载:
# www@zzzyk.com [15:56:24]
$ zssh finder@yizuotu.net
Press ^@ (C-Space) to enter file transfer mode, then ? for help
finder@yizuotu.net's password:
Last login: Mon Jul 30 15:56:20 2018 from 10.121.80.1
-bash: ulimit: open files: cannot modify limit: 不允许的操作
[www@zzzyk.com]$ ssh imhtp@localhost
imhtp@localhost's password:
Last login: Mon Jul 30 15:56:49 2018 from 10.121.80.1
[www@zzzyk.com]$ cd /opt/20180728/
[imhtp@im2-gf-test 20180728]$ sz tmp.txt
# ctrl+@
zssh > pw
pw: No such file or directory
zssh > pwd
/Users/tidy
zssh > cd Downloads
zssh > rz
Receiving: tmp.txt
Bytes received: 0/ 0 BPS:0
Retry 0: Got TIMEOUT
Transfer complete
上传:
[www@zzzyk.com]$
#ctrl+@
zssh > pwd
/Users/tidy/Downloads
zssh > sz 新模板微信.txt
Sending: 新模板微信.txt
Bytes Sent: 2505 BPS:1191
Transfer complete