有没有办法使用我当前的SSH连接进行SCP传输?

时间:2010-10-19 21:03:23

标签: ubuntu ssh scp

我已经通过SSH连接到服务器了。如何使用SCP和当前的SSH连接将文件从它传输到我连接的机器上?

1 个答案:

答案 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.