Copy the key anywhere om your laptop, but usually to ~/.ssh/amld_key
.
Update the permissions on the key accordingly:
chmod 600 <path/to/the/key>
Add it to your ssh config:
mkdir -p ~/.ssh
vim ~/.ssh/config
And add the following to the file:
Host amld
HostName <IP adress given to you>
User ubuntu
IdentityFile <path/to/the/key>
Note: to save and exit in vim
, press esc
, then :wq
.
Then you can connect to your machine by simply running:
ssh amld