LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2008, 10:44 PM   #1
math_physics
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
Code:
ssh-keygen -t rsa
Then I copy id_rsa.pub to .ssh/authorized_keys:
Code:
mv id_rsa.pub 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:
Code:
mpirun -np 2 ddscat
Permission denied.
p0_4657:  p4_error: Child process exited while making connection to remote process on t0.lz.cn: 0
"t0.lz.cn" is my hostname.

I added "t0.lz.cn" 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
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
You need the id_rsa.pub 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
math_physics
LQ Newbie
 
Registered: Jul 2005
Posts: 22

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:22 AM.

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