malefere.blogg.se

Lubuntu vnc through ssh
Lubuntu vnc through ssh





lubuntu vnc through ssh
  1. LUBUNTU VNC THROUGH SSH HOW TO
  2. LUBUNTU VNC THROUGH SSH PASSWORD
  3. LUBUNTU VNC THROUGH SSH PLUS
  4. LUBUNTU VNC THROUGH SSH WINDOWS

I should have continued to pass the command Thanks for the input, you've definately cleared things up for me.Īlthough I was connecting through SSH (using rsa_id keys and not a password) I was then starting VNC in an insecure method. If I am working remotely (which I have been lately), I connect to my server with SSH (key-auth only) and then create a tunnel to whatever machine I want to connect to, then connect with localhost:someportnumber.įreeNX really is way better then VNC when it comes to high latency links. I hardly even use VNC even inside my lan at home. Even with using FreeNX I would typically connect through a VPN tunnel so that no ports are open to local PC's directly.That's a good point. Then local security is not much of a concern if this is a private controlled network.

LUBUNTU VNC THROUGH SSH PASSWORD

If outside then like bodhi.zazen mentioned, if you want to use VNC Server securely you really need to be establishing a SSH tunnel with private keys, no password authentication, or you could also setup a VPN connection to the network and block any other external ports. i don't know about the port 80 issue though, doesn't sound right.Are we talking about connecting to your Desktop from inside or outside your LAN? If inside the LAN then security is not much of a concern, just make sure all ports are blocked to the outside world. Then edit sshd_config and turn off password authentication and root logins.

lubuntu vnc through ssh

If you follow the guide in that link I sent, you basically create a public/private key pair, copy the public key to the server machine, make sure that it works by sshing to the server.

LUBUNTU VNC THROUGH SSH PLUS

Public key authentication plus a non-standard port is the way I do it. is that a bad idea if I use public authentication? I was just thumbing through one of the linked guides and saw that you can do public key authentication instead of password authentication. what if the network I'm "dialing out" from is filtering its traffic and block non-standard ports? I'm thinking I'd have to stick with port 22 or even perhaps port-forward 80 from my router to my PC. So that'll setup the tunnel, now just open your vnc client and again, connect to "localhost:222" and you should be in business. $ ssh IP.ADDY.OF.LINUX -l USERNAME -L 222/localhost/5900Īgain, if you have an entry in your /etc/hosts for your LINUX server, you can use the hostname instead of the IP addy.

LUBUNTU VNC THROUGH SSH WINDOWS

Therefore, simply point your windows browser to " and you should have your LINUX box's webroot displayed.Īccomplished even easier via a single shell command: This configuration will securely tunnel port 80 on the LINUX box to port 10080 on your windows box. This technique is useful for ANY network service on your LINUX box. LEAVE THE PUTTY WINDOW OPEN or else the encrypted tunnel will collapse.

lubuntu vnc through ssh

To connect via VNC to the LINUX box, simple point your VNC client on the Windows box to "localhost:222" and the magic begins. Once you're into your LINUX box, PuTTY is tunneling (via ssh) connections on the LINUX end from port 5900 to port 222 on your Windows box. For destination, use localhost:5900 since you're using the default 5900 port on your LINUX box. For source port, enter a number that you'll be connecting to on your WINDOWS box. Gave the session a name and then expand the Connection>SSH>Tunnels option in PuTTY. Load up PuTTY and create a new or edit an existing session for your LINUX machine setting up the IP addy or hostname (if you have it in your c:\windows\system32\etc\drivers\hosts file). Also, if your windows machine is outside your LAN, you'll obviously need to have the port that you've used for ssh forwarded to the IP addy of your LINUX box. I'm assuming you have ssh setup and working on your LINUX box. If you're connecting from a Windows machine, doing so it trivial with PuTTY. I'll give you an example using http as well. Note: it'll work for anything that runs on the port you select, not just vnc. You'll be using ssh tunneling which is a VERY powerful and secure way to connect connect two machines one various ports. If you can't ssh into your box, you can't do this. The key here is that you have ssh open to the world.

LUBUNTU VNC THROUGH SSH HOW TO

Here's how to do this under two different circumstances:







Lubuntu vnc through ssh