Created
December 22, 2016 15:52
-
-
Save gbraccialli/5f31bf11419586c652f63afe010a8f64 to your computer and use it in GitHub Desktop.
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
chmod 400 ~/.ssh/field.pem | |
cat >> ~/.ssh/config << EOF | |
Host *.field.xxxx.com | |
IdentityFile ~/.ssh/field.pem | |
CheckHostIP=no | |
StrictHostKeyChecking=no | |
User centos | |
UserKnownHostsFile=/dev/null | |
## Automatically restore a connection if reconnected within 5 minutes (in case the VPN drops) | |
TCPKeepAlive no | |
ServerAliveInterval 60 | |
ServerAliveCountMax 5 | |
## reuses the ssh connection making things much faster | |
ControlMaster auto | |
ControlPath /tmp/.ssh_%h_%p_%r | |
ControlPersist 600 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment