Set LogLevel to VERBOSE
LogLevel SSHD configuration defines the verbosity level that is used when logging messages from SSHD.
The possible values are: 'QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG', 'DEBUG1', 'DEBUG2', and
Logging with a DEBUG level violates the privacy of users and is not recommended.
The default is INFO.
The VERBOSE LogLevel increases the detail of information collected, such as login attempts and SSH key fingerprints. The extra information improves coverage in the analysis of logs and helps to identify possible attacks or suspicious traffic.
You need to add or change a setting at the SSHD configuration file.
grep LogLevel /etc/ssh/sshd_config
If the output isn’t empty, the argument is present in the file. Edit the file
/etc/ssh/sshd_config and replace the current
LogLevel value for
VERBOSE. If the line is commented (contains a leading #), uncomment it removing
the leading #.
If the output is empty, this argument could still be defined in a
/etc/ssh/sshd_config.d/. Check there too:
grep LogLevel /etc/ssh/sshd_config.d/*.conf
If the output isn’t empty, edit the file where the argument is defined,
changing its value to
If you couldn’t find the argument definition anywhere, edit the file
/etc/ssh/sshd_config and include the following line:
Finally, restart the SSHD service:
sudo systemctl restart sshd