[Paraview] A Forward Connection Over two ssh Tunnel

Burlen Loring bloring at lbl.gov
Mon Aug 18 12:37:45 EDT 2014


Hi Ehsan,

As Utkarsh says you need to use a reverse connection. I suggest ncat 
<http://nmap.org/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 nodein 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140818/247b531a/attachment-0001.html>


More information about the ParaView mailing list