【Linux】linux 機器之間 zssh, rz, sz互相傳輸


原文鏈接:https://tidyko.com/posts/47f7c28d.html

 

服務器端安裝lrzsz:

sudo  yum install lrzsz

本地客戶端安裝lrzsz:

brew install lrzsz

本地客戶端安裝zssh:

brew install zssh

 

使用:

下載:

# tidy @ TidydeMBP in ~ [15:56:24]
$ zssh finder@10.121.22.201
Press ^@ (C-Space) to enter file transfer mode, then ? for help

finder@10.121.22.201's password:
Last login: Mon Jul 30 15:56:20 2018 from 10.121.80.1
-bash: ulimit: open files: cannot modify limit: 不允許的操作
[finder@im2-gf-test ~]$ ssh imhtp@localhost
imhtp@localhost's password:
Last login: Mon Jul 30 15:56:49 2018 from 10.121.80.1
[imhtp@im2-gf-test ~]$ cd /opt/20180728/
[imhtp@im2-gf-test 20180728]$ sz tmp.txt
�*B00000000000000

# 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

 

上傳:

[imhtp@im2-gf-test 20180728]$

#ctrl+@

zssh > pwd
/Users/tidy/Downloads
zssh > sz 新模板微信.txt
Sending: 新模板微信.txt
Bytes Sent: 2505 BPS:1191

Transfer complete


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM