RE: setting a password less ssh connection

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

 



> -----Original Message-----
> From: fedora-list-bounces@xxxxxxxxxx 
> [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Stephen
Mirowski
> Sent: Friday, May 19, 2006 12:12 PM
> To: For users of Fedora Core releases
> Subject: Re: setting a password less ssh connection
> 
> hicham wrote:
> > Hello
> > I'm having trouble to set a passwordless ssh connection 
> between many 
> > pcs ,

SNIP....

Here is how we do it for clusters using MPI/MPICH:

This is part of a new application note that we are about to bring
on-line with our new web site.

This has not been edited. Therefore read it through and then use the
parts that you need.

----------------------------------------------------------------------
---------------------------------------------------------------
STEP 3:  Configure SSH to connect without a password
----------------------------------------------------------------------
---------------------------------------------------------------

The mpd ring of MPICH2 runs by connecting to each machine via ssh.  It
is required that each machine can connect to each other machine using
ssh without a password.  In our experience, each machine must also be
able to connect to itself using ssh without a password.  The following
steps are required.

1.  > ssh-keygen -t rsa

    When asked for a passphrase, leave it blank, press enter to
continue. 

This will create 2 files in your $(HOME)/.ssh directory: id_rsa and
id_rsa.pub.  They are the public and private rsa keys.  
    
2.  Rename the newly created id_rsa.pub to authorized_keys in the
$(HOME)/.ssh directory.

You should now be able to ssh into the local machine without having to
provide a password.

Run the above two commands on each machine in the cluster.  Copy the
contents (not the actual file) of the id_rsa.pub file to the
authorized_keys file on the master (or first machine) you ran these
commands on.  You should now have an authorized_keys file that
contains the key from each machine.  

Copy this file to $(HOME)/.ssh to each node in the cluster.  Every
node should now be able to ssh into every other node (including
itself) without prompting for a password.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date:
5/19/2006
 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux