Updated specific locations to be searchable, take a look at Las Vegas as an example.
0
SSH key-based authentication stuck at "Authenticating with public key"
Post Flair (click to view more posts with a particular flair)
Post Body

Alright, here's a fun one.. I was trying to log into a headless debian server (rented VPS) of mine which I hadn't used for a while. I have two accounts pre-saved in Putty both with RSA key authentication.

When I went to log in, I got this...and it stayed at this indefinitely:

Using username "root".
Authenticating with public key "imported-openssh-key"

(This happens with more than the root account, and yes, I also have root ssh enabled in the config.)

As they both hang at the "Authenticating" message, I rebooted the VPS thinking it might've bogged down, but it didn't help. I did, however, find another account I made will login fine with either password or private key.

I tried removing authorized_keys from .ssh and then re-adding it by creating a new one with nano, but that didn't help either.

It's also not the key because I've used the same key for the account that works as I did for the others.

I'm at a loss as to what is broke, but I need to get it working again so I can deploy access to a third-party. Is anyone familiar as to why ssh key authentication can just entirely hang at the auth stage?

EDIT:

I also found that if I change anything in the public key on the server, it will respond to an authentication request saying the server denied the key. But when fixing the public key, it goes back to hanging at the "Authenticating" message.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,809
Link Karma
3,096
Comment Karma
1,535
Profile updated: 5 months ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 months ago