Fli
12-21-2014, 11:23 AM
How can be this SSH connection error solved?
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
It appeared when trying to connect remote server via SSH. I found that remote server had disabled password authentication. So i enabled it (probably in /etc/ssh/sshd_config & possibly reload sshd)
Then other cause might/might not be that ssh access key is not on remote server we trying to connect.
Then we try to add key to remote server by:
ssh-copy-id -i ~/.ssh/id_rsa.pub "-p REMOTESSHPORT REMOTESERVERIP"
ssh '-p REMOTESSHPORT REMOTESERVERIP'
Then try to connect again password less:
ssh -p REMOTESSHPORT REMOTESERVERIP OR ssh REMOTESERVERIP
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
It appeared when trying to connect remote server via SSH. I found that remote server had disabled password authentication. So i enabled it (probably in /etc/ssh/sshd_config & possibly reload sshd)
Then other cause might/might not be that ssh access key is not on remote server we trying to connect.
Then we try to add key to remote server by:
ssh-copy-id -i ~/.ssh/id_rsa.pub "-p REMOTESSHPORT REMOTESERVERIP"
ssh '-p REMOTESSHPORT REMOTESERVERIP'
Then try to connect again password less:
ssh -p REMOTESSHPORT REMOTESERVERIP OR ssh REMOTESERVERIP