Re: Unable to set up a two way passwordless ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. 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?
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- 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
users@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux