computerpasob.blogg.se

Connect to vnc through ssh
Connect to vnc through ssh







connect to vnc through ssh

These remote access servers are for interactive use only, and should not be used for CPU-intensive and/or background work. The one CloneZilla server provides pre-configured images for the workstations which can be installed over the network. The CAEN-configured VNC client uses the graphical desktop sharing system, tunneled through SSH, to connect to the CAEN Linux Remote Login Service and simulate the Linux environment in computer labs. Make it executable: sudo chmod 0755 /usr/local/bin/start-remote-desktop.shĪdd it to your default user configuration: sudo sh -c 'echo "/usr/local/bin/start-remote-desktop.sh" > /etc/skel/.profile'Īs far as the human factor goes in maintaining 500 workstations, you would love using CloneZilla. Gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false

connect to vnc through ssh

In this example, a VNC client on your local computer will connect to a remote VNC server (:0) using port forwarding with an SSH connection to another remote host (). sudo vim /usr/local/bin/start-remote-desktop.sh Using tunnels with SSH is a powerful method to access services on systems behind a firewall or that are otherwise inaccessible. Use your favorite editor over vim if you like. You could create scripts for this, too, maybe /usr/local/bin/start-remote-desktop.sh.

connect to vnc through ssh

Gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false Ask gnome not to ask, "Are you sure?" after enabling the remote desktop access. It's also considerably less of a security risk as the SSH user is the only person who's going to see the VNC server always-visible, always-on VNC servers are popular target hacks. This method is better than just running a VNC server on every machine because you're not going to slow every machine down all the time. x11vnc will then automatically try to find the right display. If your computers have funny display settings, you might do better to leave off the -display :0 segment in the SSH command. You don't have to open up any ports (as long as you can already SSH). The SSH command starts a vnc server on the remote computer and then tunnels back that port over SSH. Obviously swapping for the username and hostname/IP of the remote computer.Īnd then use a VNC client of your choice to connect to localhost:5900. Then from your local computer run: ssh -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"

#CONNECT TO VNC THROUGH SSH INSTALL#

It's a simple VNC server and you won't have to mess around with Gnome settings or 500 firewalls, just install x11vnc on all your computers (with puppet or whatever you're using for mass-control).









Connect to vnc through ssh