Archived
1
0

'SSH.md' updaten

This commit is contained in:
2019-10-15 20:50:52 +00:00
parent 3aa701e3ac
commit 422bc7ce1a

18
SSH.md
View File

@@ -1,5 +1,7 @@
## SSH SOCSK (ProxyTunnel) ## SSH SOCSK (ProxyTunnel)
`ssh -C -D 1080 <USERNAME>@<SYSTEM>` #### Command
`ssh -C -D <proxyport> <USERNAME>@<SYSTEM>`
* -C : enables compression * -C : enables compression
* -D : specifies Socks proxyport * -D : specifies Socks proxyport
@@ -12,4 +14,16 @@
6. enter "1080" (or whatever port you chose) for Port. 6. enter "1080" (or whatever port you chose) for Port.
## SSH Remote forward (makes local port apear on remote machine) ## SSH Remote forward (makes local port apear on remote machine)
<MoreSoon>
#### Port to be internaly binded on remote machine
`ssh -R <remoteport>:localhost:<localport> <USERNAME>@<SYSTEM>`
#### Port to be binded to remote machine
`ssh -g -R *:<remoteport>:localhost:<localport> <USERNAME>@<SYSTEM>`
### 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