[Paraview] A Forward Connection Over two ssh Tunnel

Burlen Loring burlen.loring at gmail.com
Mon Aug 18 16:43:45 EDT 2014


Hi Utkarsh,

Sure I can do that.

Burlen

On 08/18/2014 01:36 PM, Utkarsh Ayachit wrote:
> Burlen,
>
> Very cool. When you get the chance, mind updating the Wiki?
>
> Thanks
> Utkarsh
>
> On Mon, Aug 18, 2014 at 12:37 PM, Burlen Loring <bloring at lbl.gov> wrote:
>> Hi Ehsan,
>>
>> As Utkarsh says you need to use a reverse connection. I suggest ncat 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
>>
>> [work station]              [  login node    ]      [ compute node ]
>> [  paraview  ]<-- ssh -R --<[ ncat + ncat -l ]<-----[ pvserver -rc ]
>>
>> in more detail:
>> in your pvsc on the client
>> ssh -R ${PORT}:localhost:${PORT} ${LOGIN_HOST} ...
>>
>> on the login node in a shell script referenced by the client's pvsc:
>> let LOGIN_PORT=${PORT}+1
>> ncat -l ${LOGIN_HOST} ${LOGIN_PORT} --sh-exec="ncat localhost $PORT" &
>> qsub ...
>>
>> on the compute node in your batch script
>> mpirun ... pvserver --reverse-connection --client-host ${LOGIN_HOST}
>> --server-port ${LOGIN_PORT} ...
>>
>> You could skip ncat if you have control over the sshd config, you need to
>> enable GatewayPorts.
>>
>> Burlen
>>
>>
>> On 08/18/2014 08:18 AM, Utkarsh Ayachit wrote:
>>
>> 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.
>>
>> http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding#Reverse_Connection_over_a_Reverse_ssh_Tunnel_with_portfwd
>>
>> On Mon, Aug 18, 2014 at 11:15 AM, ehsan saei <ehsan.saei at gmail.com> wrote:
>>
>> 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
>> <utkarsh.ayachit at kitware.com> wrote:
>>
>> This may be of help:
>> http://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding
>>
>> Utkarsh
>>
>> On Mon, Aug 18, 2014 at 5:52 AM, ehsan saei <ehsan.saei at gmail.com> wrote:
>>
>> 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 www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview



More information about the ParaView mailing list