I’m having trouble logging into any of the servers I have set up through SSH, it seems like it simply won’t accept the passwords. These machines used to connect just fine and now for some reason won’t anymore.
Things I’ve already tried and ruled out:
The password is definitely correct, I use the same one to log in on the actual machine and it works fine.
The SSH key matches on host and client
The port number is correct
I’m using ecdsa, so not one of the ones that has been sort of phased out
Updating and rebooting both machines doesn’t seem to fix it
The firewall settings on the Lubuntu server aren’t causing it, the IP/port are allowed
Restarting ssh(d) on either machine doesn’t fix it
I’ve checked verbose logging and unfortunately it doesn’t provide any more useful information, I appreciate the reminder about PasswordAuthentication! It is on and doesn’t seem to be making any difference sadly.
It might be worth mentioning too that this has actually happened to me before and I don’t remember what I ended up doing, I think one day it just inexplicably started working again.
Yes, I can log into the machines not through SSH. To add to the weirdness, if I run
ssh-keygen -y -f /path
it seems to also think that my password is consistently wrong. I’ve tried just about every permutation of every password I’ve ever used and I’m convinced that I have it correct on one of the first tries but for some reason it isn’t accepting it.
So here is the reason why ssh does not work, now it seems that the passphrase on the key is different then you think, could be accidental whitespace or who knows. I’d say create and use new key and use password manager to store the password safe.
Thanks for all your help! That’s kind of the conclusion I came to as well is there must be some misspelling that I used to produce consistently and then for some reason corrected. Le sigh. Gonna have to go through all the servers and try to replace it lol.