Last active
October 13, 2016 08:04
-
-
Save my-janala/bfdaafd799d8fb144e66cc05bdc16d8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim ~/.ssh/config | |
### | |
Host *.sunrise-dev.local | |
user mezbaur | |
ProxyCommand ssh -q -A mezbaur@cd_bstn nc %h %p | |
IdentityFile ~/.ssh/mezbaur | |
LogLevel QUIET | |
StrictHostKeyChecking no | |
### | |
Host cd_bstn | |
Hostname <bastion_host> | |
User mezbaur | |
Port 20022 | |
IdentityFile ~/.ssh/mezbaur | |
ForwardAgent yes | |
ServerAliveInterval 120 | |
ControlMaster auto | |
ControlPath ~/.ssh/%%h-%%r | |
ControlPersist 10m | |
ProxyCommand none | |
LogLevel QUIET | |
StrictHostKeyChecking no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The key is ControlMaster together with ControlPath.