![]() ![]() This will prevent root login over SSH ( ). Run 'nano /etc/ssh/sshd_config' and change the "PermitRootLogin yes" line to "PermitRootLogin no". Run 'usermod -aG wheel ' replacing '' with the username of the user you just created ( ). Run 'passwd ' replacing '' with the username of the user you just created ( ). Run 'useradd ', replacing '' with your desired user name ( ). For this to be at all beneficial we must also restrict root from logging in via SSH. Setup a sudo user by creating a new user, setting the users password, and then adding the user to the sudo user group. This new user with only have access to commands that affect it's own user directory (not the rest of the system or other users), unless they prefix commands with ' sudo' (essentially running the command as root), which has password verification. On the website, under Products>Instances>Cloud Instance (the VPS you rented for this)>Settings>Firewall select the Firewall Group we created earlier, with the description you assigned yourself ( ).Ĭlick "Update Firewall Group" to apply the changes ( ).
0 Comments
Leave a Reply. |