Skip to content

Instantly share code, notes, and snippets.

@lmiphay
Created August 24, 2017 10:20
Show Gist options
  • Save lmiphay/8f28d88017fc5f3dbb9383c31f677ddc to your computer and use it in GitHub Desktop.
Save lmiphay/8f28d88017fc5f3dbb9383c31f677ddc to your computer and use it in GitHub Desktop.
Host jumpserver
User jumpuser
HostName 1.2.3.4
ProxyCommand ssh user@finalhost -W %h:%p
Host bitbucket.foo.com
User username
ForwardX11 no
ForwardX11Trusted no
Host * !bitbucket.foo.com
ControlMaster auto
ControlPath ~/.ssh/cm_socket/%L-master-%r@%h:%p
ControlPersist 8h
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ForwardX11 yes
ForwardX11Trusted yes
TCPKeepAlive yes
ServerAliveInterval 120
AddKeysToAgent yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment