Gnome Session Over SSH

Posted on September 5, 2008 by nseidm1.
Categories: Server, X, applets, brute, gnome, panel, session, ssh.

This is a cool one, far better than just a vnc connection. Even better than an X11vnc connection. Head over to another tty, lets say tty2: (cntrl)(alt)f2. Login, and start another X session:

xinit -- :1

A minimal X session will start. Now login via ssh to your server. For example I login with this:

ssh -X -C 192.168.0.1

Where -X forwards the X session, -C uses compression, and 192.168.0.1 is an example IP address of a server. If your sever is hosting a website using a domain, you can point the ssh connection at the domain. Also I recommend using rsa keys for the ssh connection, as it prevents brute force password attacks. For more information check here:

http://www.bgevolution.com/blog/ssh-brute-force-protection/

After logged in via ssh start your Gnome desktop with:

gnome-session

Your desktop will start just as if you were sitting in front of your computer. Some things wont work like the notifications panel, because one is already launched on the server desktop. Other gnome panel applets may not launch, but your desktop overall will work.

Share, Enjoy, and Support:
  • Digg
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati