Skip to content

Instantly share code, notes, and snippets.

@amura2406
Created February 12, 2017 18:16
Show Gist options
  • Save amura2406/235d5681ee06bd46ffce51cf3a89e378 to your computer and use it in GitHub Desktop.
Save amura2406/235d5681ee06bd46ffce51cf3a89e378 to your computer and use it in GitHub Desktop.
Save ssh access on Mac Terminal

Create or Open SSH Config File

It is located on ~/.ssh/config

Edit it as follows

Host ahaa-api
HostName ahaa-api
User ahaamobile
IdentityFile ~/.ssh/amura2406_ssh.pem

Host ahaa-db
HostName ahaa-db
User ahaamobile
IdentityFile ~/.ssh/amura2406_ssh.pem

Host ahaa-redis
HostName ahaa-db
User ahaamobile
IdentityFile ~/.ssh/amura2406_ssh.pem

NB: Example above is using identity file saved beforehand.

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