Changes

Jump to: navigation, search

OPS235 Lab 7 - Fedora17

1 byte added, 10:21, 18 March 2011
no edit summary
{{Admon/note | Note! | Complete the following steps on your fedora host.}}
* # OpenSSH should have been installed by default. Lets confirm this by issuing the command: ** :: <code>rpm -qa | grep ssh</code>* # You should see a number of packages installed including <code>openssh-clients</code> and </code>openssh-server</code> * # <code>openssh-server<code> installs a service called <code>sshd</code>, confirm this service is running by issuing the command:** :: <code>service sshd status</code>* # Now check that the sshd service is configured to start for runlevels 2, 3, 4, & 5, by issuing the command:** :: <code>chkconfig --list sshd</code> * # If the service is not configured correctly fix it by issuing the command:** :: <code>chkconfig --level 2345 sshd on</code>* # Now that you know the service is running investigate what port number and protocol sshd uses by issuing the command:** :: <code>netstat -atunp</code>* # What protocol and port is the sshd process using?* # What is the state of the port?* # Why do UDP ports not have a state?* # Reissue the <code>netstat</code> command without the <code>n</code> option. * # What is the difference? * # The <code>n</code> option tells netstat to list everything with numerical values, without it netstat resolves IP addresses and port numbers to host names and protocol names using the files <code>/etc/hosts</code> and <code>/etc/services</code> * # <code>netstat</code> is a very useful command for anything to do with networking. Read its man page and make sure you understand its output.* # Make sure your <code>sshd</code> service is running on all 3 of your VM's* # Answer the Investigation 1 question in your lab log book.
=== Investigation 2: How do you establish an ssh connection. ===
13,420
edits

Navigation menu