VNC console with in SSH session

frantek

Renowned Member
May 30, 2009
176
7
83
Hi,

I frequently use: ssh hostname -L8080:127.0.0.1:443 to connect to Proxmox servers at remote sites. This way every thing works by VNC. I know that I've to tunnel port 5900-5999 for VNC and I can do so. But how can I stat VNC for a running KVM instance manually, provide a password and set a VNC port so I then can connect to this port by forwarding ?

TIA
 
Hi,
add something like this in /etc/inetd.conf
Code:
5981 stream tcp nowait root /usr/sbin/qm qm vncproxy 101 secure-password
5982 stream tcp nowait root /usr/sbin/qm qm vncproxy 102 other-password
After restarting openbsd-inetd you can do a vnc-connection to proxmox-host:5981 to have a console-access to your kvm vm 101.

Udo