How do I disable SSH access?
The root user is enabled by default on most Linux servers, and hackers frequently attempt to get access to it by guessing its password. As a result, it’s a good idea to turn off the root account.
$ vi /etc/ssh/sshd_config
PermitRootLogin no
Also, instead of using a password, you can use a safe mechanism like SSH public-private key authentication.
SSH using the public key command line — check here
Read More: Velan Tech Tips
Comments
Post a Comment