SSH is secure, but we need to harden this service as well. If we can disable SSH, then the problem solved. However, if we want to use it, we have to change the default configuration of SSH. Password-based authentication should be disabled and only key-based authentication should be allowed. The steps for creating sudo users with public and private keys are as follows: