Skip to content

Instantly share code, notes, and snippets.

@r1w1s1
Last active September 30, 2017 15:47
Show Gist options
  • Save r1w1s1/9d6886bd33d909ed1fa5a672108287b4 to your computer and use it in GitHub Desktop.
Save r1w1s1/9d6886bd33d909ed1fa5a672108287b4 to your computer and use it in GitHub Desktop.
~/.ssh/config Example
Host *
ServerAliveInterval 60 #Avoid disconnection
StrictHostKeyChecking no #Disable SSH Host Key Checking
UserKnownHostsFile /dev/null #avoid create the ssh/known_hosts file
Host prod
HostName xx.xx.xx.xx
User root
Host qa
HostName xx.xx.xx.xx
User root
Port 2254
Host db
HostName xx.xx.xx.xx
User db_admin
IdentityFile ~/.ssh/db.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment