Changes

Jump to: navigation, search

OPS235 Lab 7 - CentOS6

470 bytes removed, 19:55, 12 January 2014
Investigation 5: How do you use ssh to tunnel X.
=== Investigation 5: How do you use ssh to tunnel X. ===
{{Admon/note | Use your fedora2 centos2 and fedora1 centos1 VMs | Complete this investigation on your fedora2 centos2 and fedora1 VM'scentos1 VMs.}}
{{Admon/tip | fedora1 centos1 VM iptables and ssh service | You may need to adjust the firewall on your fedora1 centos1 host to complete this section, and verify that the sshd service is running on that VM.}}
You can also use ssh to tunnel window and bitmap information. Allowing us to login to a remote desktop host and run a Xwindows application such as <code>gedit</code> or <code>firefox</code> and the application will run on the remote host but be displayed on the local host.
<!-- * In order to allow remote users to tunnel your X window (GUI) applications you must configure <code>sshd</code> to forward this type of data.# Edit the sshd configuration file on fedora1. <code>/etc/ssh/sshd_config</code> and edit or uncomment the following:<pre>X11Forwarding yesX11DisplayOffset 10X11UseLocalhost yes</pre><ol><li value="2"> Restart the <code>sshd</code> service on fedora1 using the command:<br /><code>service sshd restart</code> --># From fedora2 centos2 <code>ssh</code> to fedora1 centos1 using the following command:<br /><code>ssh -X -C user@fedora1centos1</code> (Where 'user' is your learn account on fedora1centos1). The <code>-X</code> enables the forwarding of X window information, and the <code>-C</code> enables compression for better performance.
# Once connected run the <code>gedit</code> application. (Gnome Text Editor)
# The gedit window will display on fedora2 centos2 but it is running fedora1centos1.
# Enter some text and save a file with <code>gedit</code>.
# Exit <code>gedit</code>.
# Where was the file saved?
# Experiment with running other GUI applications through <code>ssh</code>.
 
'''Answer the Investigation 5 observations / questions in your lab log book.'''
 
== Further Securing your Secure Shell Connection ==

Navigation menu