[mpich-discuss] credentials for mpiexec -f machinefile

"Antonio J. Peña" apenya at mcs.anl.gov
Wed Apr 23 15:41:52 CDT 2014


We use to encourage users to set up password-less ssh access by means of 
private/public key access. There are plenty of web pages with tutorials 
for this setup. This is just a random one: 
http://stackoverflow.com/questions/7260/how-do-i-setup-public-key-authentication

   Antonio


On 04/23/2014 03:28 PM, Jan Balewski wrote:
> Hi,
> I was able to compile & install MPICH on a master virtual machine for 
> a user cosy11.
> There are identical 2 VM running with IPs 198.125.163.212, 198.125.163.207
>
> I picked IP=212 as my master node.
> On this node I can run pi computation on two processes:
>
> cosy11 at mpi-be6bebee-55e3-4901-a5bb-637395ba46f6 mpich-3.1]$ mpiexec -n 
> 2 ./examples/cpi
> Process 1 of 2 is on mpi-be6bebee-55e3-4901-a5bb-637395ba46f6
> Process 0 of 2 is on mpi-be6bebee-55e3-4901-a5bb-637395ba46f6
> pi is approximately 3.1415926544231318, Error is 0.0000000008333387
> wall clock time = 0.000310
>
> The next step of instruction (h)
> http://www.mpich.org/static/downloads/3.1/mpich-3.1-README.txt
>
> tells me to define  machinefile , below is my definition:
> $ cat machinefile
> 198.125.163.207:2
> 198.125.163.212:2
>
> Note, I verified I can ssh to both machines from IP=212, but I must 
> type in the password
> $ ssh cosy11 at 198.125.163.212 <mailto:cosy11 at 198.125.163.212>
> $ ssh cosy11 at 198.125.163.207 <mailto:cosy11 at 198.125.163.207>
>
> Now, I try to compute pi on both VMs and  mpiexec get stuck asking for 
> the password (see the screen shot)
> mpiexec -f machinefile -n 4 ./examples/cpi
>
> I must somehow pass credentials for user=cosy11 to both VMs - how?
> Have I missed this step of the instruction?
>
> Do I need  to use ssh-key added to my ssh-add list  on IP=212  to 
> make mpiexec to work with remote hosts?
> Is there other solution you prefer?
> Can you help me how to overcome that?
>
> Thanks
> Jan
>
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss


-- 
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
apenya at mcs.anl.gov
www.mcs.anl.gov/~apenya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140423/c9bb3a28/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 66025 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140423/c9bb3a28/attachment.png>


More information about the discuss mailing list