For a developer, it happens to be an irritating task to login into server (using SSH) and typing in the password every time. It can be avoided, if you're on a secure machine (not shared).
Open Terminal - and generate SSH key:
your-local-machine$ ssh-keygen
Now copy that SSH key to your remote machine (server)
your-local-machine$ ssh-copy-id root@your-server-ip
It will ask you your-server-ip password - once the keys are copied, try login without password now.
your-local-machine$ ssh root@your-server-ip
your-server-ip#
Image source: https://medium.com/@grassfedcode/what-could-be-better-than-ssh-e69561ec1b83