If you are receiving the error above, make sure of these things before regenerating the key:
- Your account is not locked on the server
- You are using the right private key!
- You have added your public key to ~/.ssh/authorized_keys file on the server
- You added the wrong format of public key to authorized_keys file (e.g. added the Putty format instead of the OpenSSH format)
This error means that the public key generated by your SSH client was successfully transferred to the server but did not match the one stored on the server. In some cases, as mentioned above, this is misleading.
If your account is disabled then you will also get this error on some systems, even if the key you are sending is correct.
If your account is disabled then you will also get this error on some systems, even if the key you are sending is correct.
4 comments:
Hey guys just thought you should know that you need to run freeSSHd as an admin. So in windows server 2003 right click the icon.
Run As->Uncheck Run this Program With Restricted Access.
( I'm assuming this only works if you're an admin otherwise you need to run as with an admin account)
Also, in in vista/win 7 right click and Run As Administrator.
I also get this error when I try to ssh using an account that does NOT have a password. e.g
scp -i key trash acc@srv:/tmp/trash
produces the error if account acc exists on server srv but has no password.
setting a password with passwd acc resolves the issue
Hi Lubo,
That's interesting and unexpected.
What does 'password -S acc' give you?
Thanks for your comment!
Post a Comment