【发布时间】:2010-09-25 12:22:14
【问题描述】:
我正在命令行上通过 SSH 连接到远程服务器,并尝试使用 scp 命令将目录复制到我的本地计算机上。但是,远程服务器返回此“使用”消息:
[Stewart:console/ebooks/discostat] jmm% scp -p ./styles/
usage: scp [-1246BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2
[Stewart:console/ebooks/discostat] jmm%
我希望能够双向传输文件。根据我的阅读,我认为上面的命令可以用于下载,scp -p [localpath] [remotepath] 可以用于上传?
【问题讨论】: