Hi

I've got a small problem with vnc over an ssh tunnel. (sshvnc is a simplied 
form of ssvnc given in the ssvnc port.) I'm going to try to cure it myself, so 
I'm just reporting here. 

I have a virtual server with mythic-beasts, an openbsd-5.5-stable qemu image 
running on a physical debian host. I can ssh into the physical host for the 
admin console of the vs. I can vnc into the vs unencrypted and I can ssh 
directly into the vs. 

My aim is to put the vnc through an ssh tunnel using sshvnc, especially as 
Mythic-Beasts does not offer ssl. Sshvnc should do this automatically but it is 
failing. There is a fleeting error message which I managed to capture with 
scrot. This yielded the commands behind the gui:

$ sshvnc ... 

Running ssh:
env LD_PRELOAD=/usr/local/lib/ssvnc/./lim_accept.so ssh -x -x -f  -t -C -L 
5930:localhost:6009  "[email protected]" "sleep 15"

Pseudo-terminal will not be allocated because stdin is not a terminal.
[email protected]'s password:
[username] admin>
ssh_pid=''

Running viewer:
vncviewer -passwd /tmp/.vncauth_tmp.218211408475582834776.sUD935 -noraiseonbeep 
-encodings copyrect tight zrle zlib he_tile -encodings copyrect tight zrle zlib 
he_tile localhost:30

ConnectToTcpAddr[ipv4]: connect: Connection refused
Trying ipv6 connection to 'localhost'
ConnectToTcpAddr[ipv6]: trying ip-addr:  '::1'
ConnectToTcpAddr[ipv6]: connect: Connection refused
Unable to connect to VNC server (localhost:5930)
vncviewer command failed: O

+ set +xv

Done. You Can X-out or Ctrl-C this Terminal if you like. Use Ctrl-\ to pause.
= = = 

Mythic-Beasts support are telling me that the local port forwarding is wrong:

"-L 5930:localhost:6009" should instead be
"-L 5930:physical.host:6009"

There are other little things I don't understand like "-x" twice in the "env 
LD_PRELOAD" line and "-encodings ... " twice in the vncviewer line but they are 
not so important. 

Regards
Moss

Reply via email to