Skip to content

Instantly share code, notes, and snippets.

@dergachev
Last active September 12, 2019 01:54
Show Gist options
  • Save dergachev/82bbe2d670da278f28eb to your computer and use it in GitHub Desktop.
Save dergachev/82bbe2d670da278f28eb to your computer and use it in GitHub Desktop.

With TigerVNC

TigerVNC is the only vnc client that seems to support proxmox's SSL encryption scheme.

If you're willing to install it on your client, run the following:

ssh -L 1234:localhost:1234 mimosa.tree.ewdev.ca -l root -- socat tcp-l:1234,range=127.0.0.1/32 exec:"'"qm vncproxy 119"'"

tigervnc localhost:1234

Of course this assumes that you have socat installed on the proxmox server. Note the fancy quoting, which is required for all the programs to receive their args correctly.

Without TigerVNC

Sick of proxmox KVM not working with any clients due to their half-implemented encryption requirements?

With the following, no more password prompts or encryption; NO MORE PUZZLING KEYBOARD LAG!

# setup SSH forward from your laptop:5900 to mimosa's localhost:6017
ssh mimosa.tree.ewdev.ca -L 5900:localhost:6017

# this will make kvm listen on port mimosa's localhost:6017
echo "args: -vnc 127.0.0.1:117" >> /etc/pve/local/qemu-server/117.conf

# restart kvm
kvm stop 117; kvm start 117

While the port forwarding is running:

your-vnc-program localhost:6017

Resources:

@zhangyoufu
Copy link

ssh -L5900:/var/run/qemu-server/100.vnc <hostname>

@denysvitali
Copy link

Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment