Since you usually aren't running VNC server on desktop :0, "somehost:0", it'll try to access desktop :0 via port 5900 on the hostĬomputer. So if you start your VNC client and try to connect to Seen this was the default, but ymmv) will have a base port number ofĥ900. The VNC server byĭefault (ok, I may be bs'ing you here, in all the distributions I've Linux box, you'd likely be using desktops :1, :2, and :3 for VNC. So, if you started three VNC server sessions on your Users logging in at the console will not be able to Linux box, desktop ":0" is available, and you can use "vncserver :0"Īnd it'll work.
Interesting side note: if X Windows isn't running on the Specify a desktop by using "vncserver :N", where N is the desktop Sessions are running, it'll probably start with desktop ":1". Start the VNC server without specifying a desktop, VNC server willĬreate a new desktop with the next available number. "primary" desktop running on the Linux box is desktop ":0". Ok, on Linux you can have multiple desktops. Some explanation about the ports and desktops For server enter "localhost:1".Ĭlick OK (or hit return) and the connection should be established, and Login stuff an example: say I want to use VNC to connect to a Localport is the port on your local computer you want to open, then aĬolon, then the hostname or ip of the host computer then a colon, then The -L flag is for setting up the port forwarding. Ssh -L localport:host ip or hostname:hostport or hostname. Up a connection to the host machine with port forwarding enabled using Start VNC and aim it at the apropriate port on your client computer (localhost).
Both are graciously offered free for you to use from their respective hosts. ToolsĬygwin's openSSH and RealVNC's VNC Client. Session, whatever) I've decided to do this over SSH. I'm just paranoid that someone somehow will be able to monitor my VNC Linux box is behind a firewall that only allows SSH access, possibly Linux box somewhere "out there." For security reasons (possibly the
I want to use a VNC client on my Windows box to access a There are tutorials for this already, but I figured it would be good toĪt least write down how I do it in case I forget later. Basic Secure VNC: VNC run over an SSH session using port forwarding Probably