Skip to content

Instantly share code, notes, and snippets.

@pavank
Last active May 24, 2019 10:13
Show Gist options
  • Save pavank/8e698aa802437c24c91f17e1af1db945 to your computer and use it in GitHub Desktop.
Save pavank/8e698aa802437c24c91f17e1af1db945 to your computer and use it in GitHub Desktop.
Linux Client-OpenSSH Config
# Save file as ~/.ssh/config
# Add permissions chmod 600 ~/.ssh/config
# Optional permissions chmod $USER ~/.ssh/config
##default for all hosts##
Host *
ForwardAgent No
ForwardX11 no
Compression yes
Protocol 2
PreferredAuthentications publickey,password
IdentityFile ~/.ssh/id_rsa
ServerAliveInterval 60
ServerAliveCountMax 30
## Per Host Settings ##
Host proj-dev
HostName mydevmachine.westeurope.cloudapp.azure.com
User myprojectuser
Port 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment