- Download your-ssh-key.pem
- mv your-ssh-key.pem to ~/.ssh/your-ssh-key.pem
- ssh -i your-ssh-key.pem [email protected]
#Use this command to remove entries from known_hosts: ssh-keygen -R hostname
ec2metadata | grep public-ipv4
#Use this command to remove entries from known_hosts: ssh-keygen -R hostname
ec2metadata | grep public-ipv4