Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

388 bytes added, 13:27, 27 July 2010
Investigation 5: How do you use ssh to tunnel X.
{{Admon/note | Note! | Complete this investigation on your fedora2 and fedora1 VM's.}}
{{Admon/note tip| SELinux | SELinux may prevent ssh from accessing your home directories on Fedora 1 because you created a new filesystem there. 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 reset the security context of the /home directory with this command: <code>gedit<restorecon -Rv /code> or <code>firefoxhome</code> and the application will run on the remote host but be displayed on the local host. }}
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 XWindows 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>
</pre>
* Restart the <code>sshd</code> service on fedora1 using the command:
** <code>service sshd restart</code> -->
* From fedora2 <code>ssh</code> to fedora1 using the following command:
** <code>ssh -X -C user@fedora1</code> (Where 'user' is your learn account on fedora1). 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 but it is running fedora1.