Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - CentOS7

63 bytes added, 08:55, 5 May 2015
no edit summary
=== Part 2: How do you use ssh to tunnel X. ===
{|width="40%" align="right"|- valign="top" |{{Admon/note tip | Use your centos2 centos1 VM iptables and centos1 VMs ssh service | Complete this investigation You may need to adjust the firewall on your centos2 '''centos1''' host to complete this section, and centos1 VMsverify that the '''sshd''' service is running on that VM.}} |} 
{{Admon/tip | centos1 VM iptables and ssh service | You may need to adjust the firewall on your 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.
# For this section, you will be using your centos1 and centos2 VMs.# From centos2 <code>'''ssh</code> '' to '''centos1 ''' using the following command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">ssh -X -C user@centos1</span></code></b> (Where 'user' is your learn account on centos1). The <code>'''-X</code> ''' option enables the forwarding of X window information, and the <code>'''-C</code> ''' option enables compression for better performance.# Once connected run the <code>'''gedit</code> ''' application. (Gnome Text Editor)
# The gedit window will display on centos2 but it is running centos1.
# Enter some text and save a file with <code>'''gedit</code>'''. # Exit <code>the '''gedit</code>''' application.
# Where was the file saved?
# Experiment with running other GUI applications through <code>'''ssh</code>'''.
'''Answer Part 2 observations / questions in your lab log book.'''
13,420
edits