SSH Tunneling
ssh CLI flags:
- -NDo nothing (except connect)
- -fFork to Background
- -qSuppress any output
- -vVerbose
- -pSpecify port (defaults to 22)
| command | effect | 
|---|---|
| ssh -D 5090 dark -N | Start Socks proxy to darkon:5090 | 
| ssh dark -L 18053:localhost:8053 -N | Tunnel from outgoing :18053todark’s outgoing:8053, and fork to bg | 
| ssh -q -o 'StrictHostKeyChecking no' jude exit | Unquestioningly add jude’s host key to~/.ssh/known_hostsand then quit | 
| ssh-copy-id -i local.id_rsa.pub dark | Copy the key in local.id_rsa.pubtodark’s~/.ssh/authorized_keysfile | 
| ssh-keygen -t rsa | Interactive: create new key (defaults to ~/.ssh/id_rsa{.pub}) | 
| sudo sshuttle -r chbrown@dark:8080 0.0.0.0/0 | Tunnel all connections through darkon:8080 | 
| ssh -t markov 'ssh n004' | Connect to n004viamarkov |