VNC console with in SSH session

frantek

Renowned Member
May 30, 2009
171
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!