SSH: Permission denied (publickey,gssapi-with-mic,password)

Solution 1:

The username and password you are trying are not accepted by the host. That means either you are connecting to the wrong server, or the username or password is incorrect. You should ask the administrator to check the logs on host2, that should tell you which of the three is the case.

Solution 2:

First

 chmod 700 .ssh

and then :

 chmod 600 .ssh/authorized_keys

and test this :

restorecon -r -vv .ssh/authorized_keys

Solution 3:

In my case, It was caused by encryption of the home directory. I have changed the location of the ssh keys and it resolved the issue : (Web Archive copy) http://tweaktheserver.com/ssh-cant-connect-authentications-that-can-continue-publickeygssapi-keyexgssapi-with-micpassword/

Tags:

Ssh

Ssh Agent