Skip to content

Instantly share code, notes, and snippets.

@ipan
Created January 16, 2018 05:26
Show Gist options
  • Save ipan/281f7959ee51e225e15ee7707fee88f1 to your computer and use it in GitHub Desktop.
Save ipan/281f7959ee51e225e15ee7707fee88f1 to your computer and use it in GitHub Desktop.
ssh config: ProxyJump #ssh #mac

Example config for mac only

Host bastion
  Hostname ssh-bastion.example.com
  IdentityFile ~/.ssh/bastion_ssh.key
  User bastion-user

# internal server on private network
Host 172.18.* 192.168.*
  ProxyJump bastion

# internal bastion server for 10.0.0.0 network
Host internal
  Hostname 172.16.0.1
  User bastion-user

# ssh jump via 'bastion' and then via 'internal'
Host 10.43.* 10.37.* 10.20.*
  ProxyJump bastion, internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment