To make your server more secure, it's a good idea to disable root login and password authentication.
Open /etc/ssh/sshd_config
- Make sure ssh with pub key is enabled
RSAAuthentication yes
PubkeyAuthentication yes
- Disable PermitRootLogin
Before doing this, make sure you have created other user(s) who have sudo. Otherwise, no user has sudo...
PermitRootLogin no
- Disable PasswordAuthentication
PasswordAuthentication no
- Restart ssh
sudo service ssh restart