Skip to content

Instantly share code, notes, and snippets.

@NazmusShakib
Created April 3, 2020 21:15
Show Gist options
  • Save NazmusShakib/73e5e603348d65e8bac274b07982c773 to your computer and use it in GitHub Desktop.
Save NazmusShakib/73e5e603348d65e8bac274b07982c773 to your computer and use it in GitHub Desktop.
## Create a file in '~/.ssh' directory called 'config' and set below code with valid configuration.
## Then simply type 'ssh example-1.com' to go there.
Host example-1.com
Hostname 00.000.000.000
User ubuntu
IdentityFile ~/.ssh/pem-files/example-1.pem
Host example-2.com
Hostname 000.000.000.000
User ubuntu
IdentityFile ~/.ssh/pem-files/example-2.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment