Checking the security in SSH servers with the ssh-audit tool
If we need to verify our SSH server configuration, we have two alternatives:
- By looking at the configuration file and contrasting this information manually
- By using
ssh-audit
, which is a script developed in Python that will allow us to extract a large amount of information about our protocol configuration
In this section, we will be looking at the second alternative – the ssh-audit
tool.
ssh-audit
(https://pypi.org/project/ssh-audit) is an open source tool written in Python that has the capacity to scan the configuration of our SSH server and will indicate whether the different configurations that we have applied are secure.
Some of the main features of this tool are that it allows us to detect the login banner, for example, if we are using an insecure protocol such as SSH1. This tool also has the capacity to check the key exchange algorithms, the public key of the host, and information related...