Setup your Machine(Mac/ Linux) for working with fuckin AWS Lightsail
Skip this if you have sensitive auth previously with your existing Key(id_rsa or id_ed..)
ssh-keygen -t rsa -b 4096 -N '' -C "<your fuckin email according AWS IAM>" -f ~/.ssh/id_rsa
Just fuckin' download the default only. Don't generate new except you know what you do! Go here:
https://lightsail.aws.amazon.com/ls/webapp/account/keys
chmod 0400 ~/.ssh/LightsailDefaultKey-ap-southeast-1.pem
cat ~/.ssh/id_rsa.pub | ssh -i ~/.ssh/LightsailDefaultKey-ap-southeast-1.pem ubuntu@<Your Lightsail Instance IP> 'cat >> .ssh/authorized_keys'
ssh ubuntu@<Your Lightsail Instance IP>
It should done
- https://forums.aws.amazon.com/thread.jspa?threadID=266130
- https://garywoodfine.com/connect-aws-lightsail-ssh-with-ubuntu-terminal/
- or go with this keyword aws lightsail ssh permission denied (publickey)