In this tutorial I will show you how to enable remote SSH with password-less login in Ubuntu using SSH keys.
Once you are logged on to your Ubuntu instance, launch Terminal if in GUI or just issue the command below (server – without GUI):
sudo apt-get install openssh-server
Enter your password then press Enter
Verify the packages that will be installed, then type y for yes and press Enter
That is it! You now have a fully functional SSH server that will accept remote SSH logons with usernames and passwords.
Lets give it a quick shot. Here I have two instances (ubuntu – on the left / ubuntu-b on the right). Both instances have SSH installed on them following the same steps above. I will SSH from ubuntu-b (right) to ubuntu (left)