vncserver config and ssh
lets see if i can explain what i need.
My linux server (serverx.company.com - redhat CentOS release 5.4) is sitting in a US based colo. There is no display attached to it.
We connect to this machine from India using ssh.
All good till now.
Now, we have written an automation suit that needs to run on this server - serverx. This automation suit has two part - command line and GUI. for GUI, it needs to invoke the browser (we are using selenium).
This automation will be invoked as part of build. hence there will not be any display attached to it when it executes.
How do I do it.
I know that I need to run the vncserver and do something. We really need not have physical display attached.
Something like this??
VNC with SSH tunnel
From the workstation open a terminal and write:
In the same terminal also invoke the command to start the vncserver on the server.
ssh -L 59XX:localhost:59XX vnc-host-ip
ex.: ssh -L 5904:localhost:5904 184.108.40.206
And again from your workstation open another terminal and write:
I don't know if it was something like that you looked for but this is how I connect to remote machines for use of their graphic environment.
vncviewer localhost :XX
ex.: vncviewer localhost :04
Of course you then need both SSH and vncserver installed on the remote machine