Hard time on connecting aws instance through ssh?
If you are getting the error like this, the public key and the private key might not be matched.
"bitnami@54.XX.XX.XX: Permission denied (publickey)."
ssh-keygen -t rsa -b 4096 -f ~/.ssh/new_key -C "your_email@example.com"
Making new ssh pair might make a solution in that case.