You are not logged in.

#1 2008-11-04 14:57:57

metalfan
Member
Registered: 2007-11-22
Posts: 99

[SOLVED]tightvnc, ssh tunnel

Hi,


first of all, to which port do i want to point my ssh forwarding to? 5801/5901?




server = myserver
client = myclient
all commands are run as the user test, on both systems.
----------------------------------------------------------------------------------
myserver:

vncserver
<passwort question and so on....

tail -f myserver:1.log
#this form of log entry gets added everytime i run "nc localhost 9999" from the client
#no log output after running "vncviewer localhost:9999"
04/11/08 15:50:53 Got connection from client myclient
04/11/08 15:52:18 rfbProcessClientProtocolVersion: client gone
04/11/08 15:52:18 Client myclient gone
04/11/08 15:52:18 Statistics:
04/11/08 15:52:18   framebuffer updates 0, rectangles 0, bytes 0

------------------------------------------------------------------------------------
myclient:

ssh -L 9999:myserver:5901 localhost

nc localhost 9999           #looks like the ssh tunnel is working, something is answering
RFB 003.008

#but:
vncviewer localhost:9999
Error: Can't open display:

whats wrong here?

Last edited by metalfan (2008-11-04 15:33:54)

Offline

#2 2008-11-04 15:33:35

metalfan
Member
Registered: 2007-11-22
Posts: 99

Re: [SOLVED]tightvnc, ssh tunnel

crap:

vncviewer localhost::9999 #two :

was the solution

Offline

Board footer

Powered by FluxBB