<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default">Hi Justin,</div><div class="gmail_default"><br></div><div class="gmail_default">I'm not sure why you are using ssh-cl, but I'm guessing that you want to get around firewall / auth issues.</div>

<div class="gmail_default"><br></div><div class="gmail_default">The configuration I use is coaster-service running on remote machine, with an ssh-tunnel between the remote machine and the local machine. </div><div class="gmail_default">

<br></div><div class="gmail_default">Here are the steps. Assume you are on localmachine and you want to run on remotemachine</div><div class="gmail_default"><br></div><div class="gmail_default"># start ssh tunnel to forward the port swift is going to use to connect to the coaster-service</div>

<div class="gmail_default">ssh -L 51001:remotemachine:51001 user@remotemachine</div><div class="gmail_default"><br></div><div class="gmail_default"># start the coaster-service in passive mode </div><div class="gmail_default">

# Make sure you use a recent swift-0.95 version </div><div class="gmail_default">coaster-service -p 51001 -localport 51005 -nosec -passive &> coaster-service.logs &</div><div class="gmail_default"><br></div><div class="gmail_default">

# Start the worker , once connected worker would appear to be stuck</div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><a href="http://worker.pl">worker.pl</a> <a href="http://localhost:51005">http://localhost:51005</a> 0099 ~/workerlog </font><br>

</div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"># At this point you could try running a swift script on the remotemachine to check if the </font></div>

<div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"># setup is done right, with the following sites.xml file</font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><br>

</font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><div class="gmail_default"><config xmlns="<a href="http://www.ci.uchicago.edu/swift/SwiftSites">http://www.ci.uchicago.edu/swift/SwiftSites</a>"></div>

<div class="gmail_default">  <pool handle="coasters"></div><div class="gmail_default">    <execution provider="coaster-persistent" url="<a href="http://localhost:51001">http://localhost:51001</a>" jobmanager="local:local"/></div>

<div class="gmail_default">    <profile namespace="globus" key="workerManager">passive</profile></div><div class="gmail_default">    <profile namespace="globus" key="jobsPerNode">4</profile></div>

<div class="gmail_default">    <profile namespace="karajan" key="initialScore">10000</profile></div><div class="gmail_default">    <profile namespace="globus" key="maxwalltime">00:05:00</profile></div>

<div class="gmail_default">    <profile namespace="karajan" key="jobThrottle">8.10</profile></div><div class="gmail_default">    <workdirectory>./swiftwork</workdirectory></div>

<div class="gmail_default">  </pool></div><div class="gmail_default"></config></div><div class="gmail_default"><br></div><div class="gmail_default">The same sites.xml should work for you on localmachine.</div>

</font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif">I tested this between crush and grind, with the latest swift-0.95 version. </font></div>

<div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial"><font face="arial, helvetica, sans-serif">Thanks,</font></div>

<div class="gmail_default">​Yadu </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 4:43 PM, Justin M Wozniak <span dir="ltr"><<a href="mailto:wozniak@mcs.anl.gov" target="_blank">wozniak@mcs.anl.gov</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
     I'm trying to get SSH-CL going with port forwarding.  I think I<br>
just need to tell Coasters which port to use for the bootstrap<br>
connection.  I'm doing:<br>
<br>
sites.xml:<br>
<br>
   <pool handle="grind"><br>
     <execution provider="coaster" jobmanager="ssh-cl:local"<br>
url="<a href="http://grind.mcs.anl.gov" target="_blank">grind.mcs.anl.gov</a>"/><br>
<br>
 > ssh -L 50001:localhost:50001 grind<br>
 > export GLOBUS_HOSTNAME=localhost<br>
 > export GLOBUS_TCP_PORT_RANGE=50000,50002<br>
<br>
I either get:<br>
<br>
Failed to download bootstrap jar from <a href="http://localhost:50002" target="_blank">http://localhost:50002</a><br>
<br>
if the ports do not line up or:<br>
<br>
java.io.IOException: java.io.IOException: No free ports available.<br>
<br>
if I make the range too restrictive.<br>
<br>
How should I set this up?  I cannot change the firewall rules.<br>
<br>
Or should I consider doing this with a local coaster service and manual<br>
coasters?<br>
<br>
     Thanks<br>
<span class="HOEnZb"><font color="#888888">     Justin<br>
<br>
--<br>
Justin M Wozniak<br>
<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Yadu Nand B<div><br></div></div>
</div>