I'm trying to set-up a password-less login for SSH to script some automated tests on my system.
I need to set this up for two different machines, so from machine "A" I need to use password-less login for machines "B" and "C".
I've run the following, which works for machine "B", but not for machine "C".
me@A# ssh-keygen ... [ follow the instructions just pressing Enter ] me@A# ssh-copy-id -i ~/.ssh/id_rsa.pub root@B ... [ enter password when requested, etc.] me@A# ssh root@B Last Login XXX from YYY root@B#
So this works fine for machine "B". If I follow exactly the same procedure for machine "C", then it doesn't work.
Both machines are Scientific Linux 6.4, up-to-date and I've run "telnet B 22" and "telnet C 22" to determine which version of SSH is running on each machine ("SSH-2.0-OpenSSH_5.3"). I diff'd the /etc/ssh/sshd_config files on machines B and C. They are identical.
I've tried starting with machine "C", I've been careful to clear out the ".ssh" directory on all three machines each time I start a new test, but I get the same result each time. "B" works, "C" doesn't - it asks for the password still (but then let's me in, at least)
I'm looking for a specific tests to try to find out what the difference between these two machines is that will make this work for one machine but not the other. They're in identical boxes even. One has 1GB memory, one has 4Gb. That's about the only physical difference.