目前我有一个 mips 板子。里面的 dropbear 只支持 ssh,不支持 scp。
我想通过 rz/sz 的方式传输文件。在 windows 下面的 XShell 很容易做到。
但是在 linux 下面的纯 ssh 命令行怎么做?
(我只是想问这个问题,不是问在这种情况下把文件传输过去的各种方法,其实有很多解决办法的,但我只想知道这个问题的答案,谢谢)
迷茫2017-04-17 11:49:26
If you must use sz/rz, try this thing
If you just want to transfer some files and don’t want/can use scp, you can actually be simpler: ssh user@host tar cz /path/files_need_to_be_transferred | tar xvfz -
Or simply like this: ssh user@host cat /path/file > /dest/path/file
怪我咯2017-04-17 11:49:26
You can try downloading an FTP client. Most clients now support the sftp protocol. You can log in directly with an SSH account to transfer files
ringa_lee2017-04-17 11:49:26
Install zssh, then use zssh to connect to your machine, and use sz/rz to download/upload resources.
Use CTRL+SHIFT+2
to switch between the remote machine and the local machine to achieve downloading/uploading.