Unable to set up a two way passwordless ssh

John M Cavallo johnc0102 at verizon.net
Wed Oct 15 00:59:08 UTC 2014


I have two Fedora 20 boxes that I am trying to set up a passwordless login 
from each to the other. I am able to set up the login from one, bert, to the 
other, ernie, but not the other way around.

To create it, I do the following:

On bert,

    remote_user=jack at ernie
    ssh-keygen -t dsa
    ssh ${remote_user} mkdir -p .ssh
    ssh ${remote_user} chmod 700 .ssh
    cat .ssh/id_dsa.pub | ssh ${remote_user} 'cat >> .ssh/authorized_keys'
    ssh ${remote_user} chmod 600 .ssh/authorized_keys

Then when I execute
    ssh ${remote_user}

I can go from bert to ernie without a password. Reversing the process however 
doesn't work, I still need a password to go from ernie to bert. What is most 
confusing is that I haven't found any configuration option that is different 
between the two.



More information about the users mailing list