Admin-Ahead Community

Linux => General Linux => Topic started by: nandulalr on December 13, 2018, 12:46:10 am

Title: ssh failed Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
Post by: nandulalr on December 13, 2018, 12:46:10 am
ssh failed Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

If you are facing issues with ssh login and displaying the error message “ssh failed Permission denied (publickey,gssapi-keyex,gssapi-with-mic)”, try to follow the below steps:

You may try edit in /etc/ssh/sshd_config:

Code: [Select]
cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.back
vim /etc/ssh/sshd_config

Change "PasswordAuthentication no" to "PasswordAuthentication yes"

Restart sshd service

Code: [Select]
service sshd restart
Try to login again.