I have already configured login to ssh with keys and it works fine. The problem is that when I'm connecting to the server with key and included password but I don't see any failed login attempts when I type a wrong password. There are no failed login attempts using key in:
/var/log/audit/audit.log
or
/var/log/secure
Other words i can type password to key til i die without any action.
Do you have any ideas how to log to file failed login attemps to ssh using key with password ?
OS is : Red Hat Enterprise Linux Server release 7.3 (Maipo)
Thank you in advance.
This is log from the server when i have typed many times wrong password:
Connection from my_ip port 51115 on server_ip port 22
sshd[3639]: Found matching RSA key: 00:12:23 ...
sshd[3639]: Postponed publickey for some_user from ip_address port 51115 ssh2 [preauth]
Best Answer
It sounds like you've configured your client key to require a password to open the key before connecting to the server. It won't be logged by your server because that occurs on the client machine.