Created
May 11, 2021 03:08
-
-
Save isutare412/0958436a0d7d47a0adf6d05498e76695 to your computer and use it in GitHub Desktop.
SSH config using proxy / jumbox / bastion
This file contains hidden or 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 your-jumpbox | |
| HostName xxx.xxx.xxx.xxx | |
| User user1 | |
| IdentityFile ~/.ssh/private_key_for_jumpbox | |
| Host endpoint1 | |
| HostName xxx.xxx.xxx.xxx | |
| User user2 | |
| ProxyCommand ssh -q -W %h:%p your-jumpbox | |
| Host endpoint2 | |
| HostName domain.to.endpoint2 | |
| Port 1234 | |
| User user3 | |
| IdentityFile ~/.ssh/private_key_for_endpoint2 | |
| ProxyCommand ssh -q -W %h:%p your-jumpbox | |
| ServerAliveInterval 50 # Prevent server to drop user (AWS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment