|Description||This article provides more detailed information about the log message 'Administrator admin login failed from SSH because of invalid SSH key'|
The following log message will be displayed under the system events logs when an admin login failed due to invalid SSH key:
Log Description: Admin login failed
User Interface: ssh (172.25.181.252)
Message: Administrator admin login failed from ssh (172.25.181.252) because of invalid ssh key
In order to verify the error in the connection, the following SSH daemon debugs must be run on FortiGate:
# diag debug app sshd -1
In such case, even though SSH access to FortiGate is successful FortiGate will log a message stating 'Administrator admin login failed from SSH because of invalid SSH key'.
There are 2 solutions to avoid generating such log messages on FortiGate:
Use password authentication instead.