If you have ssh service running, make sure you disable the root login. If you didnt disable the ssh root login, you are prone to brute force attack and once it breaks in, your server is owned. To prevent this happen, you can disable the root login thru the ssh. No worry, it’s not a very difficult task, just edit a line of configuration and restart the service then you are done.
To disable ssh root login, follow the steps below:-
Advertisements
- login to your linux with root privilege
- Now edit the sshd_config file. Normally it’s located at /etc/ssh directory
vi /etc/ssh/sshd_config
- Now look for the line below
#PermitRootLogin yes
- and change to below then save:-
PermitRootLogin no
* Remove the # and change the value to no
- Now restart your sshd service using the command below:-
service sshd restart
- Done! you has just disable your ssh root login!
Related posts:
How to add native menu support in your WordPress theme?
How to set SVN_EDITOR environment variable
How to extract .bz2 file in Linux?
How to empty Trash in Roundcube web mail - CPanel?
How to import mysql innodb with foreign key constraint error?
Contact Form 7: Clear all field except specific after submission
How to add Primary and Secondary DNS server - /etc/resolve.conf - Linux
How to extract .deb file in Linux / Mac
Share this with your friends:-