windows icon indicating copy to clipboard operation
windows copied to clipboard

[Question]: How to set a password to the ip:8006 site of VNC View?

Open MuMu360121 opened this issue 1 year ago • 5 comments

Is your question not already answered in the FAQ?

  • [X] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • [X] I am sure my question is not about a technical issue.

Question

How to set a password to the ip:8006 site of VNC View? I set it in a NAS that have the public ipv4 address and have do the ddns ,then I can use the domain:8006 to see my docker windows without any login/password method, it's unsafe.

MuMu360121 avatar Oct 27 '24 15:10 MuMu360121

There is no option to set the VNC password, because they can be bruteforced very easily and only offer a fake sense of protection.

The best option is to not allow port 8006 in the firewall (or only from specific IP addresses that you whitelist). And use port 3389 (RDP) instead.

kroese avatar Oct 27 '24 15:10 kroese

I'm not a programmer but I searched the documents form qemu, is it possible to use the part of Configuring SASL mechanisms or let user to set a account and password in the environment?

Sometimes ,I use it to do jobs the security software kill the port 3389, I need use it in the VNC site,but when I just finish the job I will close the security software and use the rdp.

MuMu360121 avatar Oct 27 '24 16:10 MuMu360121

I'm not a programmer but I searched the documents form qemu, is it possible to use the part of Configuring SASL mechanisms or let user to set a account and password in the environment?

Sometimes ,I use it to do jobs the security software kill the port 3389, I need use it in the VNC site,but when I just finish the job I will close the security software and use the rdp.

Maybe the document is not suit for the question , It's the problem from the NoVNC(https://github.com/novnc/noVNC),I searched but no result

MuMu360121 avatar Oct 27 '24 16:10 MuMu360121

My windows was blasted into the vnc and changed the password, my method is to change the configuration file port 8006 to 127.0.0.1:8006, if you want to use vnc, use vpn to connect to the machine.

dengniqiu avatar Nov 12 '24 02:11 dengniqiu

You can do it like this: https://github.com/dockur/windows/issues/301#issuecomment-2018610554

kroese avatar Nov 12 '24 09:11 kroese

This is now implemented in v4.11, you can set:

environment:
   USER: "admin"
   PASS: "123"

to set authentication for the VNC website.

kroese avatar Feb 15 '25 03:02 kroese