I am trying to enable passwordless ssh between two servers. I followed the instructions mentioned here - How to set up passwordless SSH access for root user
But everytime I try to login to the server, it asks me for the password. Once I enter the password, it works fine for a few hours, then it is reset to its usual state where it starts asking me for the password again. How can I persist the changes?