Skip to content

Devops: SSH shortcut script

Oscar Fabiano edited this page Jul 6, 2021 · 2 revisions

1 ) copy yours .pem files to ~/.ssh

2 ) sudo chmod 400 *.pem

3 ) sudo nano (or vim) /etc/ssh/ssh_config

  /*EXAMPLE*/
  Host nexterp
  User ubuntu
  HostName ec2-3-96-145-203.ca-central-1.compute.amazonaws.com
  IdentityFile ~/.ssh/nexterp.pem

Now you can connect to the server:

ssh nexterp
Clone this wiki locally