Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Created November 1, 2018 17:33
Show Gist options
  • Save KavenTheriault/dfd78d62c9a282a2c63664b35a5fc7c4 to your computer and use it in GitHub Desktop.
Save KavenTheriault/dfd78d62c9a282a2c63664b35a5fc7c4 to your computer and use it in GitHub Desktop.
ssh rsa

All you need is your rsa key file

cp name_rsa ~/.ssh/
chmod 400 ~/.ssh/name_rsa

cat >> ~/.ssh/config <<EOF
Host dev.website.com my_connection_name
Hostname {server_ip_address}
User {username}
IdentityFile ~/.ssh/name_rsa
IdentitiesOnly yes
EOF

ssh my_connection_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment