[英]Transfer files from C - A using scp
I want to transfer a directory from C to A我想将目录从 C 转移到 A
where, A - local system/machine (Windows) B - Jump Server/Host C - Host (Ubuntu) (There is test directory on this host which I need to get into my local windows machine)其中,A - 本地系统/机器(Windows) B - 跳转服务器/主机 C - 主机(Ubuntu)(此主机上有测试目录,我需要进入我的本地 windows 机器)
Any help would be appreciated.任何帮助,将不胜感激。
scp -J user@B user@A:directory .
Or if you use this connection more frequently, it's convenient to add an entry to ~/.ssh/config
:或者,如果您更频繁地使用此连接,在
~/.ssh/config
中添加一个条目会很方便:
Host A
User user
ProxyCommand ssh B -W %h:%p
then scp A
will work transparently然后
scp A
将透明地工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.