From 422bc7ce1afaa12bbf51e07604b8913c1ff10554 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Tue, 15 Oct 2019 20:50:52 +0000 Subject: [PATCH] 'SSH.md' updaten --- SSH.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/SSH.md b/SSH.md index 7da3018..4de42dd 100644 --- a/SSH.md +++ b/SSH.md @@ -1,5 +1,7 @@ ## SSH SOCSK (ProxyTunnel) -`ssh -C -D 1080 @` +#### Command +`ssh -C -D @` + * -C : enables compression * -D : specifies Socks proxyport @@ -12,4 +14,16 @@ 6. enter "1080" (or whatever port you chose) for Port. ## SSH Remote forward (makes local port apear on remote machine) - \ No newline at end of file + +#### Port to be internaly binded on remote machine + +`ssh -R :localhost: @` + +#### Port to be binded to remote machine + +`ssh -g -R *::localhost: @` + +### SSHD config (on remote where ports are forwarded to) +* GatewayPorts no : only allows the remote system to connect +* GatewayPorts yes: allows the remote network to connect to the forwarded port +* GatewayPorts clientspecified : allows the remote network to connect to the forwarded port when -g switch is used \ No newline at end of file