'SSH.md' updaten
This commit is contained in:
18
SSH.md
18
SSH.md
@@ -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
|
||||||
Reference in New Issue
Block a user