[cs615asa] [CS615] Reminders for working with SSH

Edward Minnix III eminnix at stevens.edu
Tue Feb 2 11:44:42 EST 2021


When you download the pem file for accessing the VM over SSH, make sure you
change the permissions on the file.

SSH does not like to use keys that other users can touch, so I suggest (I
named my key 615-sysadmin.pem):

$ cp ~/Downloads/615-sysadmin.pem ~/.ssh
$ chmod 400 ~/.ssh/615-sysadmin.pem

Also helpful for accessing the VM is to alias it in your SSH config. For
example:

Host sysadmin
    Hostname ec2-0-0-0-0.compute-1.amazonaws.com
    Port 22
    User root
    IdentityFile ~/.ssh/615-sysadmin.pem

Then you can access the VM by running

$ ssh sysadmin

Hope this helps!

Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20210202/ed5f07d6/attachment.html>


More information about the cs615asa mailing list