From 3938032595c1dc356aa7f3d9fc3cbac1c46d65bf Mon Sep 17 00:00:00 2001 From: Idar Lund Date: Tue, 8 Jan 2019 08:24:16 +0100 Subject: [PATCH] Update scp scp over socks --- cheat/cheatsheets/scp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/scp b/cheat/cheatsheets/scp index 5b5ade9..aaf866f 100644 --- a/cheat/cheatsheets/scp +++ b/cheat/cheatsheets/scp @@ -3,3 +3,6 @@ scp foo.txt user@example.com:remote/dir # To copy a file from a remote server to your local machine: scp user@example.com:remote/dir/foo.txt local/dir + +# To scp a file over a SOCKS proxy on localhost and port 9999 (see ssh for tunnel setup): +scp -o "ProxyCommand nc -x 127.0.0.1:9999 -X 4 %h %p" file.txt username@example2.com:/tmp/