Search This Blog

Friday, 9 May 2025

Server refused our key - No supported authentication methods available (server sent: publickey.gssapt-keyex,gssapi-with-mic)

 Introduction:

after setting up the ssh private and public key, error message coming "Server refused our key"




Resolution:

Check the following steps and check if it resolve the issue.

1- login to server and switch to root user

2- go to /home/user_not_connecting_with_ssh e.g. /home/testuser

3- go to .ssh

4- vi the authorized_keys

5- insert the following on the first line and make sure there is space at the end of the following

ssh-rsa 

6- test the issue


No comments:

OCI - Oralce linux - warning your password will expire in 6 days - use command "chage"

  If OS user gets the warning message for password expiry in OCI Oracle linux, then change the password expiry, following are the 2 methods ...