SSH snippets
Local Port forwarding ssh -L 50088:remote2.myserver.com:80 atlex@remote1.myserver.com SSH portforwarding in backgraound ssh -fNT -L 8888:localhost:8888 myuser@mydomain.com official mannual
-f: Requests ssh to go to background just before command execution. -N: Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only). -T: Disable pseudo-tty allocation. Config file Host github.com User git Port 22 Hostname github.com IdentityFile ~/.ssh/id_ecdsa TCPKeepAlive yes IdentitiesOnly yes Host myserver*.com User atlex00 Host gcp User atlex00 Hostname 192.