SSH (Secure Shell) Example of using SSH through PuTTY in Microsoft Windows 7 From: http://www.sutenm.com Root ssh protection on centos How to Set SSH to not allow root login Today, the basic security of linux. That is, not to Root Access directly, but through other users. Let's see how better. Follow the next part 2. [Root @ valkyrie ~] # useradd To create a new user, use the ssh login instead of root. [Root @ valkyrie ~] # passwd Now set a password to it (recommended for each root). [Root @ valkyrie ~] # vi / etc / ssh / sshd_config Edit sshd_config offline Set PermitRootLogin to no. In the beginning it will be adjusted to yes, then comment with # to remove it. Then scroll down to the bottom. Type this line in. AllowUsers Then save the file off the mana. Now let's service sshd restart to re-order service sshd. Do not close this SSH before. Because we still do not know what configuration we use, there is no problem login to it? If not tested before May have to walk to solve the file page, because it will not ssh anymore. So, open the ssh terminal to the server again and try to login with root. I can not find it. Turn off the terminal and open ssh to the next page, then test the login with the user we created at the beginning. If it's ok, then go through. If we want to use root privileges It is because of the newly created user. It does not have the equivalent of Root, so the way to get us into Root is that. [Newusers @ valkyrie ~] $ su - It will type password root, then type root.