SSH To Box with .PEM

ssh-keygen -t rsa -b 2048 -v

Enter a file name for example “work” and accept other defaults. Two files will get generated, work and

rename work to work.pem and put in

copy to the server you want to ssh to and append it to the file ~/.ssh/authorized_keys (create if needed)

edit your local ~/.ssh/config and add the following inserting the ip address and user name appropriately.

Host work
HostName <host ip address>
IdentityFile ~/.ssh/work.pem
User <user name>

Then to connect simply

ssh work