Changes

Jump to: navigation, search

OPS235 Lab 7 - Fedora17

1,463 bytes added, 13:21, 16 March 2010
no edit summary
* Experiment with <code>scp</code> to copy a file from fedora3 directly to fedora1.
* Answer the Investigation 4 question in your lab log book.
 
=== 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 | | 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 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 yes
X11DisplayOffset 10
X11UseLocalhost yes
</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 user@fedora1</code> (Where 'user' is your learn account on fedora1)
* Once connected run the <code>gedit</code> application. (Gnome Text Editor)
* The gedit window will display on fedora2 but it is running fedora1.
* 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 question in your lab log book.
 
 
Where was the file saved?
9
edits

Navigation menu