Skip to content

Instantly share code, notes, and snippets.

@tajidyakub
Created April 3, 2018 15:56
Show Gist options
  • Save tajidyakub/c9ff4db1c10f36ea06cb07bf9d6dd12c to your computer and use it in GitHub Desktop.
Save tajidyakub/c9ff4db1c10f36ea06cb07bf9d6dd12c to your computer and use it in GitHub Desktop.
SSH Config file multiple servers dengan multiple keys

SSH Config files

$ vim ~/.ssh/config

Host alias
  Hostname s1.namadomain.com
  User namauser
  Port 22
  IdentityFile ~/.ssh/privatekey

Host alias2
  Hostname s2.namadomain.com
  User namauser
  Port 22
  IdentityFile ~/.ssh/privatekey2


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