guides
SSH guides for Mac
Short guides for the SSH work you do every week on a Mac: tunnel into a database, keep your servers organised in ~/.ssh/config, and reach private machines through a bastion. Every command works with the OpenSSH that ships with macOS. Nothing to install.
ls -1 guides/
SSH tunnels on Mac: -L, -R and -D
Reach a remote PostgreSQL or MySQL as if it ran on your Mac, expose a local port, or browse through a SOCKS proxy.
- -L
- -R
- -D
- postgresql
- mysql
· 6 min
~/.ssh/config with examples
Stop typing the user, port and key every time: one alias per server, then just
ssh prod.- Host
- IdentityFile
- Include
- keychain
· 5 min
ProxyJump through a bastion
Get into servers on a private network by hopping through a bastion, without copying your private key anywhere.
- ProxyJump
- -J
- bastion
· 5 min