如何利用当前的SSH连接进行SCP传输?

3

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


服务器和客户端使用哪个平台或应用程序? - Paulo Scardine
适用于http://serverfault.com。 - Paul R
@Paul R:是的,你说得对。sh/w/coulda... - davemyron
@Paulo:最近的Ubuntu都可以。 - davemyron
1个回答

1

你可以使用zssh(一种用于ssh的类似zmodem的应用程序)。

但是,如果你只是想避免再次提示输入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.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接