-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathssh
More file actions
12 lines (10 loc) · 696 Bytes
/
ssh
File metadata and controls
12 lines (10 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# Local TCP port forwarding
# listens on BINDADDR:BINDPORT on the client and forwards to TARGETADDR:TARGETPORT via the host
ssh user@host -NL BINDADDR:BINDPORT:TARGETADDR:TARGETPORT
# Remote TCP port forwarding
# listens on BINDADDR:BINDPORT on the host and forwards to TARGETADDR:TARGETPORT via the client
ssh user@host -NR BINDADDR:BINDPORT:TARGETADDR:TARGETPORT
# Establish SSH connection via a web proxy using a suitable ProxyCommand
# using a typical web port for the SSH service increases the chance of getting through
ssh user@host -p 8080 -o "ProxyCommand=ncat --proxy proxy.example.com:8080 %h %p"
ssh user@host -p 8080 -o "ProxyCommand=proxytunnel -p proxy.example.com:8080 -d %h:%p"