User Tools

Site Tools


creating_an_ssh_shortcut

This is an old revision of the document!


Creating an SSH shortcut on Linux/macOS

This is mostly for convenience but may be necessary if you are having problems using sshfs.

Rather than having to type something like:

ssh -i .ssh/myidentityfile.pem ubuntu@my_ec2_ip

You can create ssh shortcuts to simplify this to the following:

ssh myec2

To do so, create the file .ssh/config (if it doesn't already exist) using this template:

Host your_shortcut_name_here
    HostName      your_ec2_ip_address_here
    IdentityFile  /home/ubuntu/.ssh/myidentityfile.pem
    User          ubuntu
LDAP: couldn't connect to LDAP server
creating_an_ssh_shortcut.1561540028.txt.gz · Last modified: 2019/06/26 10:07 by nmckillop