Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd not accepting authorized keys
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2365
Location: Kentucky

PostPosted: Mon Dec 12, 2022 12:09 pm    Post subject: sshd not accepting authorized keys Reply with quote

I have a machine that has worked with remote ssh logins using authorized keys for many years. all of a sudden, about 2 weeks ago, it stopped accepting remote logins unless a password was entered from the ssh prompt of the remote logging in machine. This behavior is observed from several different machines because they run scripts on cron to update information on the misbehaving machine. I have tried re-entering the known-hosts information but to no avail. I have verified that the authorized keys information looks correct.

Any idea what could be wrong. I even rebooted the affected machine thinking a random memory error could be the fault, but still no joy.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54252
Location: 56N 3W

PostPosted: Mon Dec 12, 2022 12:40 pm    Post subject: Reply with quote

Moriah,

Code:
ssh -vvv ....
will tell you much more.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Mon Dec 12, 2022 2:13 pm    Post subject: Reply with quote

And don't forget to double check the permissions of .ssh/ - should be 0700.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21637

PostPosted: Mon Dec 12, 2022 3:56 pm    Post subject: Reply with quote

In at least some cases, the server's log will report if it considered and rejected an authorized_keys file. Check your server logs for any complaints about bad configuration for the affected user.

sshd_config can direct the server not to allow public key authentication. Perhaps a package update and subsequent bad configuration file merge changed it to allow only passwords.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum