我已经通过SSH连接到服务器了。如何使用SCP和当前的SSH连接将文件从它传输到我连接的机器上?
答案 0 :(得分:1)
您可以使用zssh(zmodem like app for ssh)。
但是,如果您只是试图避免ssh再次提示输入密码,只需将客户端主机公钥(生成运行ssh-keygen一次)放在服务器上〜/ .ssh / authorized_keys
来自“apt-cache show zssh”:
Description: interactive file transfers over ssh
zssh (Zmodem SSH) is a program for interactively transferring files to a
remote machine while using the secure shell (ssh). It is intended to
be a convenient alternative to scp, allowing to transfer files without
having to open another session and re-authenticate oneself.