Disable Root Login through SSH
Task: For security consideration, disable SSH login as root
1. SSH to whitebox with root login
2. Create a new user for further SSH login
3. Edit file /etc/ssh/sshd_config
4. Find line like
Protocol 2
Make sure it is just Protocol 2, not Protocol 2,1.
More...
5. Find line
#PermitRootLogin yes
Uncomment it and change to
PermitRootLogin no
6. do
/sbin/service sshd restart
7. Log out, and try log in with root again, FAILED
8. Try log in with the new user id, SUCCESSFUL!