I have two nodes (master and slave) where the home directory of the master is shared via NFS with the slave node. I have created an ssh key and used 'ssh-copy-id' to add the public key to 'authorized_keys'.
The passwordless ssh works from the slave to the master, but not from the master to slave as I get "agent admitted failure to signing using key".
I think it may be an issue with file permissions but it is tricky since ~/.ssh folder is shared using NFS. Any ideas?
If you have SELinux enabled, you may have to enable NFS mounted home directories via:
I had this problem on RHEL, and found the solution in /var/log/messages:
Did you generate the key in master or slave? Try this on both master and slave:
"username" is the name of the user you need to enable ssh.
Try this if the above method fails:
Enter this command from slave.