Created
March 27, 2015 12:58
-
-
Save muhmi/f37c827885d068ac85cf to your computer and use it in GitHub Desktop.
Route SSH connections through a bastion host
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
Host bastion_ip | |
User ec2-user | |
HostName ##.##.##.## | |
ProxyCommand none | |
IdentityFile ~/.ssh/bastion_key.pem | |
BatchMode yes | |
PasswordAuthentication no | |
Host * | |
ServerAliveInterval 60 | |
TCPKeepAlive yes | |
ProxyCommand ssh -q -A ec2-user@bastion_host -i ~/.ssh/bastion-key.pem nc %h %p | |
ControlMaster auto | |
ControlPath ~/.ssh/mux-%r@%h:%p | |
ControlPersist 8h | |
User ubuntu | |
StrictHostKeyChecking no | |
IdentityFile ~/.ssh/applicatio-server-key.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment