<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi </tt><tt>Ehsan,<br>
<br>
</tt><tt>As Utkarsh says you need to use a reverse connection. I
suggest <a href="http://nmap.org/ncat/">ncat</a> instead of
portfwd because portfwd is a long dead project with no support and
it's failed to compile on some systems I used. Here's a schematic
of the setup</tt><tt><br>
</tt><tt><br>
</tt><tt>[work station] [ login node ] [
compute node ] </tt><tt> </tt><tt><br>
</tt><tt>[ paraview ]<-- ssh -R --<</tt><tt>[ ncat</tt><tt>
</tt><tt>+</tt><tt> ncat</tt><tt> -l</tt><tt> </tt><tt>]<-----[
pvserver -rc ]</tt><tt><br>
</tt><tt><br>
</tt><tt>in more detail:</tt><tt><br>
</tt><tt>in your pvsc on the client</tt><tt><br>
</tt><tt>ssh -R ${PORT}:localhost:${PORT} ${LOGIN_HOST} ...</tt><tt><br>
</tt><tt><br>
</tt><tt>on the login node in a shell script referenced by the
client's pvsc:</tt><tt><br>
</tt><tt>let LOGIN_PORT=${PORT}+1</tt><tt><br>
</tt><tt>ncat -l ${LOGIN_HOST} ${LOGIN_PORT} --sh-exec="ncat
localhost $PORT" &</tt><tt><br>
</tt><tt>qsub ...</tt><tt><br>
</tt><tt><br>
</tt><tt>on the compute node</tt><tt> in your batch script</tt><tt><br>
</tt><tt>mpirun ... pvserver --reverse-connection --client-host
${LOGIN_HOST} --server-port ${LOGIN_PORT} ...</tt><tt><br>
</tt><tt><br>
</tt><tt>You could skip ncat if you have control over the sshd
config, you need to enable GatewayPorts.</tt><tt><br>
</tt><tt><br>
</tt><tt>Burlen</tt><br>
<br>
<div class="moz-cite-prefix">On 08/18/2014 08:18 AM, Utkarsh Ayachit
wrote:<br>
</div>
<blockquote
cite="mid:CADHSJjDpkregjeJUBO7yLN4CkZBftu5tpsFM+s+6crHfhMLCSA@mail.gmail.com"
type="cite">
<pre wrap="">It does boil down to using reverse connection and setting up recursive
tunnels so that the pvserver and tunnel back to the client. See the
following on the need for portfwd and how it could potentially be
helpful here.
<a class="moz-txt-link-freetext" href="http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding#Reverse_Connection_over_a_Reverse_ssh_Tunnel_with_portfwd">http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding#Reverse_Connection_over_a_Reverse_ssh_Tunnel_with_portfwd</a>
On Mon, Aug 18, 2014 at 11:15 AM, ehsan saei <a class="moz-txt-link-rfc2396E" href="mailto:ehsan.saei@gmail.com"><ehsan.saei@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear Utkarsh,
Thanks for your respond. I tried the section : " A forward connection over
an ssh tunnel "
but it doesn't work. The problem is that I have to ssh to one system and
then ssh to the cluster again and finally I can submit a job. Do you have
any other suggestions?
thanks in advance,
Ehsan
On Mon, Aug 18, 2014 at 4:29 PM, Utkarsh Ayachit
<a class="moz-txt-link-rfc2396E" href="mailto:utkarsh.ayachit@kitware.com"><utkarsh.ayachit@kitware.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
This may be of help:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding">http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding</a>
Utkarsh
On Mon, Aug 18, 2014 at 5:52 AM, ehsan saei <a class="moz-txt-link-rfc2396E" href="mailto:ehsan.saei@gmail.com"><ehsan.saei@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I'm new to paraview. I try to run pvserver on a cluster. The problem is
that
I need to ssh twice to get access to the cluster. To use pvserver I
submit a
job on the cluster and then I run pvserver using the command
"mpirun -np 12 pvserver"
then I pick the name and port from terminal and use it in paraview
client.
but paraview can't find the pvserver. Is there any way to establish a
connection via these two ssh tunnels?
Thanks in advance,
Ehsan
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at:
<a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>