Last active
September 21, 2017 08:50
Star
You must be signed in to star a gist
ssh configuration
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
# ~/.ssh/config | |
Host sample | |
User user1 | |
hostname sample.host.com | |
Port 2222 | |
# disable host key checking | |
StrictHostKeyChecking no | |
Host sample2 | |
User user2 | |
# enable diffie hellman sha1 | |
KexAlgorithms +diffie-hellman-group1-sha1 | |
# port forwarding | |
LocalForward 5901 localhost:5901 | |
# default config | |
# nb: must be below the other hosts to override settings | |
Host * | |
User root | |
# keep alive interval | |
ServerAliveInterval 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment