Snehal Hodage
Snehal Hodage

Reputation: 89

Transfer files from C - A using scp

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.

Upvotes: 0

Views: 107

Answers (1)

OhleC
OhleC

Reputation: 2950

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

Upvotes: 1

Related Questions