Access to the server
ssh root@VPS_PUBLIC_IP
Create a new User
adduser usrexample
Root privileges
gpasswd -a usrexample sudo
SSH public key athentication
Local
ssh-keygen
cat ~/.ssh/id_rsa.pub
Server
su usrexample
mkdir .ssh
chmod 700 .ssh
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
Disable root login through SSH
vi /etc/ssh/sshd_config
PermitRootLogin yes --> PermitRootLogin no
service ssh restart
ssh usrexample@VPS_PUBLIC_IP
exit