There are a few reasons why you could be getting a “Permission Denied” error when attempting to log in using SSH. If you receive this error, check for the following issues:
PasswordAuthentication is disabled in
authorized_keys file has the wrong permissions
If you’ve checked for all of these conditions and are still receiving a “Permission Denied” error, you can use the Recovery Console to regain SSH access.