From 8873045d3d1666d152f9b537db9195aae321a59a Mon Sep 17 00:00:00 2001 From: Michael Blaschek <michael.blaschek@univie.ac.at> Date: Tue, 24 Nov 2020 15:56:11 +0100 Subject: [PATCH] Update README.md --- SSH-VPN-VNC/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SSH-VPN-VNC/README.md b/SSH-VPN-VNC/README.md index 0d4c2e1..c973e85 100644 --- a/SSH-VPN-VNC/README.md +++ b/SSH-VPN-VNC/README.md @@ -9,10 +9,15 @@ You should be able to use an SSH tunnel. Assuming you're trying to transfer a file from a remote computer ("remote") to your local computer ("local"), establish the tunnel via the third computer ("gateway") by typing this on your local computer: -`ssh -fNL 12345:remote:22 gatewaylogin@gateway` +```bash +ssh -fNL 12345:remote:22 gatewaylogin@gateway +``` Then you can run an unlimited amount of SCP commands on this tunnel (still typing on your local computer): -`scp -P 12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file` +```bash +scp -P 12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file +``` + I just tested this on my network, and it worked perfectly. The above method is fine if the remote network is secure, but if it is not secure, -- GitLab