How to Retrieve SSH Password with a Working SSH Key

authenticationpasswordssh

I always login a server with a ssh key, so I am not sure what my actual password was anymore. I would need to guess a couple of times. However the server has fail2ban and I don't want to trigger that. Is there any way to check which of my passwords corresponds to the ssh key which is accepted by the server?

Is there anyway I can check my password after logging in with the ssh-key without triggering fail2ban?

Best Answer

No, there is no relation between an account password and the ssh key.

You can logon to an account with ssh with a key even if it has no password.


For the updated question, yes, type:

su YOURUSERNAME

then try if you remember your password

Related Question