Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-04-2008, 10:44 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 22

Rep: Reputation: 15
Question URGENT: "how to let mpirun work with SSH"

I install mpich-1.2.5 on my RH9.0.
I generate RAS key pair using command
ssh-keygen -t rsa
Then I copy to .ssh/authorized_keys:
mv authorized_keys
Now I can log in my machine without password using SSH.

But when I run a MPI program, I got these error messages:
mpirun -np 2 ddscat
Permission denied.
p0_4657:  p4_error: Child process exited while making connection to remote process on 0
"" is my hostname.

I added "" to file /etc/hosts.equiv, the problem is solved.

But if you add hostnames to /etc/hosts.equiv, then there is no need to use RSA keys.

Could anyone give me some ideas, if I do not use the file /etc/hosts.equiv?

Thank you!
Old 05-05-2008, 03:37 PM   #2
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
You need the key to be in all the slave machine's home directories as well. Copy it to all the slave node's ~/.ssh/authorized_keys and you should be able to log into each one without a password. Also, depending on what MPI version you're running (I can't remember off the top of my head for mpich), you'll need to set an environment variable to tell mpi to SSH instead of RSH.

edit: Just re-read your post, and you're trying to run 2 procs on the same machine. In that case I'd look for the environment variable to set.

Last edited by beadyallen; 05-05-2008 at 03:41 PM.
Old 05-05-2008, 09:29 PM   #3
LQ Newbie
Registered: Jul 2005
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you!
In fact, I have done what you said. But the problem is still there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you view uninformative thread subjects like "urgent", "please help", etc. bigrigdriver General 17 02-21-2008 01:08 AM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 04:22 PM
gnome global settings "Help Me!!" or "URGENT" Fascistchicken Linux - Software 3 01-26-2004 06:27 PM
<input type="button" disabled="true" > does not work in ns4.7 or 4.9 cybercop12us Programming 2 11-29-2002 08:31 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration