Skip to content

Instantly share code, notes, and snippets.

@ricventu
Last active September 21, 2017 08:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ricventu/0294e9c51866ef2b5b13cd0e71935653 to your computer and use it in GitHub Desktop.
ssh configuration
# ~/.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