A short description of how to enable root login over SSH in Linux.
I got a requirement in my project to enable autologin for some build scripts to get some information from remote machine through autologin. My colleagues has given steps to create identiry and rsa files and copy them to the remote machine and rename as authorize files. But that steps didnt work. Browsing the internet I got a good reference to built-in script which Linux had. These are the 2 simple steps to enable autologin.
The machine from which you want to login just type the following commands.
ssh-keygen -q -t rsa -N ” -f ~/.ssh/id_rsa
ssh-copy-id -i ~/.ssh/id_rsa firstname.lastname@example.org
this will ask for password once. Enter the same.
Now try ssh email@example.com
you will find it wont ask any password.