Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Last active March 18, 2022 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AysadKozanoglu/311d2a792f7826cf61336c59eb290843 to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/311d2a792f7826cf61336c59eb290843 to your computer and use it in GitHub Desktop.
scp file over multiple hops

local copy remote file over hops with command scp

server A: 192.168.1.10 (hops over)
server B: 192.168.1.11 (remote file is here)

scp -oProxyJump=<user>@serverA <user>@<serverB>:<PATHtoFile> Downloads/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment