<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
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:
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/7260/how-do-i-setup-public-key-authentication">http://stackoverflow.com/questions/7260/how-do-i-setup-public-key-authentication</a><br>
<br>
Antonio<br>
<br>
<br>
On 04/23/2014 03:28 PM, Jan Balewski wrote:<br>
</div>
<blockquote cite="mid:38B73DF9-97EF-4E33-AE7D-CB4870E1D0AA@mit.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi,
<div>I was able to compile & install MPICH on a master virtual
machine for a user cosy11.</div>
<div>There are identical 2 VM running with
IPs 198.125.163.212, 198.125.163.207</div>
<div><br>
</div>
<div>I picked IP=212 as my master node.</div>
<div>On this node I can run pi computation on two processes:</div>
<div><br>
</div>
<div>cosy11@mpi-be6bebee-55e3-4901-a5bb-637395ba46f6 mpich-3.1]$
mpiexec -n 2 ./examples/cpi<br>
Process 1 of 2 is on mpi-be6bebee-55e3-4901-a5bb-637395ba46f6<br>
Process 0 of 2 is on mpi-be6bebee-55e3-4901-a5bb-637395ba46f6<br>
pi is approximately 3.1415926544231318, Error is
0.0000000008333387<br>
wall clock time = 0.000310<br>
<br>
</div>
<div>The next step of instruction (h)</div>
<div><a moz-do-not-send="true"
href="http://www.mpich.org/static/downloads/3.1/mpich-3.1-README.txt">http://www.mpich.org/static/downloads/3.1/mpich-3.1-README.txt</a></div>
<div><br>
</div>
<div>tells me to define machinefile , below is my definition:</div>
<div>$ cat machinefile </div>
<div>198.125.163.207:2<br>
198.125.163.212:2<br>
<br>
</div>
<div>Note, I verified I can ssh to both machines from IP=212, but
I must type in the password</div>
<div>$ ssh <a moz-do-not-send="true"
href="mailto:cosy11@198.125.163.212">cosy11@198.125.163.212</a></div>
<div>$ ssh <a moz-do-not-send="true"
href="mailto:cosy11@198.125.163.207">cosy11@198.125.163.207</a><br>
<br>
</div>
<div>Now, I try to compute pi on both VMs and mpiexec get stuck
asking for the password (see the screen shot)</div>
<div>mpiexec -f machinefile -n 4 ./examples/cpi<br>
<br>
</div>
<div>I must somehow pass credentials for user=cosy11 to both VMs -
how?</div>
<div>Have I missed this step of the instruction?</div>
<div><br>
</div>
<div>Do I need to use ssh-key added to my ssh-add list on IP=212
to make mpiexec to work with remote hosts?</div>
<div>Is there other solution you prefer?</div>
<div>Can you help me how to overcome that?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Jan</div>
<div><br>
</div>
<div><br>
</div>
<div><img id="3dbdf985-2f0b-4680-a71c-38fe8105c382"
apple-width="yes" apple-height="yes"
src="cid:part4.08070201.02060909@mcs.anl.gov" height="267"
width="814"></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
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
<a class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/~apenya">www.mcs.anl.gov/~apenya</a></pre>
</body>
</html>