I want to transfer a directory from C to 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)
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
:
Host A
User user
ProxyCommand ssh B -W %h:%p
then scp A
will work transparently
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.