diff --git a/SSH.md b/SSH.md index 4de42dd..bd1c0ac 100644 --- a/SSH.md +++ b/SSH.md @@ -17,13 +17,26 @@ #### Port to be internaly binded on remote machine -`ssh -R :localhost: @` +`ssh -R :
: @` #### Port to be binded to remote machine -`ssh -g -R *::localhost: @` +`ssh -g -R *::
: @` + +* -R : Remote forward +* -N : Do not execute a remote command +* -g : forward to remote network ### 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 +* GatewayPorts clientspecified : allows the remote network to connect to the forwarded port when -g switch is used + + +## SSH Local forward (makes remote port apear on local machine) + +#### Remote port to be binded on local machine + +`ssh -L :
: @` + +* -L : Local forward \ No newline at end of file