Connect to your Linux computer remotely without needing to take the less secure VNC route yet, still having a GUI to work with. This quick and painless tutorial will show how to forward your GNOME session from your Linux box to another computer, via SSH and X11 Forwarding. I have found out along the way that X11 forwarding seems quicker then a traditional VNC connection and has better integration. Better security and (what seems like) quicker response times are just one of the benefits of using SSH. You will of course need a OS that has X11 and GNOME installed for this experiment. This tutorial can also be applied towards other desktop environments as-well such as KDE if you wish and for individual applications.
- Two computers
- One Computer running X11
- One Computer running X11 and GNOME
- Static IPs set
- General knowledge of Linux
- About 20-30min Free time
Set-up SSH on the Linux server, on Ubuntu Linux type sudo apt-get install SSH in the terminal and press enter. Type your admin password in and SSH should now be successfully installed.
X11 forwarding is turned off by default when SSH is installed on your Linux server, it is now your task to turn it on. Type sudo gedit /etc/ssh/ssh_config into terminal and press enter. Add
to the file ssh_config and save it.
Repeat Step Two for the sshd_config file type sudo gedit /etc/ssh/sshd_config into the Linux terminal and press enter. Add
to the file sshd_config and save it.
Now from Mac OS X (any OS with x11 installed) type ssh -X email@example.com into the X11 terminal (xterm) located inside the Utilities folder on Mac OS X. You will then be connected via SSH to the server.
After your connected to the server via SSH type gnome-session into the xterm terminal. It may take a second but you should see the start-up sequence for GNOME. Enjoy!