View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Mon Dec 12, 2022 12:09 pm Post subject: sshd not accepting authorized keys |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54252 Location: 56N 3W
|
Posted: Mon Dec 12, 2022 12:40 pm Post subject: |
|
|
Moriah,
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Dec 12, 2022 2:13 pm Post subject: |
|
|
And don't forget to double check the permissions of .ssh/ - should be 0700. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21637
|
Posted: Mon Dec 12, 2022 3:56 pm Post subject: |
|
|
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 |
|
|
|