DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I successfully connected to a VNC server through an SSH tunnel, but it didn't let me do that without SSH. Is there a way to disable SSH and connect directly to the VNC server?
It is EASY, the default VNC server/client setup did not use SSH originally. The problem is that you would have to have control of both ends. If the server end is set up to REQUIRE ssh, then the VNC client MUST use SSH to reach it. Do you have control of both ends?
You should still use SSH, since if the raw VNC interface gets exposed to the net, intruders will find it and use it to quickly and easily enter your system.
It is EASY, the default VNC server/client setup did not use SSH originally. The problem is that you would have to have control of both ends. If the server end is set up to REQUIRE ssh, then the VNC client MUST use SSH to reach it. Do you have control of both ends?
It suddenly occurs to me to ask: WHY would you want to eliminate ssh from the vnc connection?
I mean: it is working as configured, and that IS the preferred method. Why break it just to eliminate SSH?
it didn't let me do that without SSH. Is there a way to disable SSH and connect directly to the VNC server?
It occurs to me that we don't know what exactly happens. How do you try to connect, which IP address and port are you using, and what are the symptoms (e.g. error message)?
Also how did you create the tunnel.
To connect directly, use the server's IP address followed by a colon and the display number. Instead of the display number, you can use the port, which is normally 5900+DISPLAYNUMBER.
As far as I know, Debian doesn't block network ports by default.
Check to see if your vncserver is listening on the proper port for a direct connection. Next check to see if your firewall is runnign and blocking that port.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.