[Paraview] pvserver through ssh tunnel

David E DeMarle dave.demarle at kitware.com
Tue Mar 5 07:04:15 EST 2013


You are just missing that you need to use a reverse connection to make the
server attempt to connect through the tunnel back to the listening client,
as opposed to the normal connection mode where the client connects to the
listening server.

In your setup the ssh tunnel is listening on the server side on port 2223
first, then the pvserver also tries to listen on 2223 and it can't because
it is in use. Using a reverse connection the server will instead send data
to the port which is fine.



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, Mar 5, 2013 at 6:39 AM, Kit Chambers <kit.chambers.kc at gmail.com>wrote:

> Hi,
>
> I am trying to run a pvserver which is connected to using a client behind
> a firewall. The firewall blocks everything except ssh going out. Hence I am
> trying to use pvserver through an ssh tunnel.
>
> My plan was as follows:
>
> On client (inside firewall):
> 1 - Start paraview
> 2 - Create ssh tunell for port 11111
> %  ssh -nNTR 2223:localhost:11111 me at pvserver-hostname
>
> Then on pvserver-hostname start the pvserver, however I get the following
>
> % ./bin/pvserver --server-port=2223
> Waiting for client
> Connection URL: cs://localhost:2223
> ERROR: In
> /home/rock/kit/PIG/Technical/software/pv_v1.0.0-release/ParaView-3.11.1/VTK/Common/vtkSocket.cxx,
> line 206
> vtkServerSocket (0x1d067ae0): Socket error in call to bind. Address
> already in use.
>
> ERROR: In
> /home/rock/kit/PIG/Technical/software/pv_v1.0.0-release/ParaView-3.11.1/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx,
> line 284
> vtkTCPNetworkAccessManager (0x1cb4aea0): Failed to set up server socket.
>
> This procedure work fines for other services. For example:
> % ssh -nNTR 2223:localhost:22 me at pvserver-hostname
>
> Allows me to ssh back to my machine from pvserver-hostname (using port
> 2223).
>
> What's so special about pvserver? Am I missing something really basic?
>
> Any help or suggestions would be greatly appreciated.
>
> Kit
>
>
>
>
>
>
>
> _______________________________________________
> 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://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130305/3a679605/attachment.htm>


More information about the ParaView mailing list