On Tuesday, October 14, 2014 06:14:22 PM you wrote:
> On 10/14/2014 05:59 PM, John M Cavallo issued this missive:
> > 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@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.
>
> Uhm, see if ssh-agent is running on ernie.
ssh-agent is running on both.
> Also, you could have
> simplified this by using:
>
> $ ssh-keygen -t dsa
> $ ssh-copy-id -i ~/.ssh/id_dsa.pub jack@ernie
>
> That would have done steps 3-6 you did manually. See "man ssh-copy-id"
> for details. You do know you only have to do the "ssh-keygen" once and
> use the same id_dsa.pub on all your remote machines, right?
Learn something new every day.
> ----------------------------------------------------------------------
> - Rick Stevens, Systems Engineer, AllDigital [email protected] -
> - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
> - -
> - There are only 10 kinds of people in the world -- those who -
> - understand binary and those who don't -
> ----------------------------------------------------------------------
--
users mailing list
[email protected]
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org