【问题标题】:Is there a way to use my current SSH connection for an SCP transfer? [closed]有没有办法使用我当前的 SSH 连接进行 SCP 传输? [关闭]
【发布时间】:2011-04-27 17:30:12
【问题描述】:

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

【问题讨论】:

  • 服务器和客户端上的哪个平台/应用程序?
  • @Paul R:是的,你是对的。 sh/w/could...
  • @Paulo:两者都是最近的 Ubuntu。

标签: ubuntu ssh scp


【解决方案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.

【讨论】:

    猜你喜欢
    • 2021-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-24
    • 2017-08-27
    • 2017-12-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多