Skip to content

Instantly share code, notes, and snippets.

@niraj-shah niraj-shah/config
Created Jul 15, 2013

Embed
What would you like to do?
Config file for SSH logins
# Example using private key
Host ServerName1
User root
HostName serverone.com
Port 2222
IdentityFile ~/servername1.pem
# Example that requires password
Host ServerName2
User ubuntu
HostName servertwo.com
Port 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.