Changes

Jump to: navigation, search

OPS235 Lab 7 - CentOS6

214 bytes removed, 19:04, 12 January 2014
Investigation 1: How do you enable the sshd service.
=== Investigation 1: How do you enable the sshd service. ===
{{Admon/note | Use your f17host c6host computer system | Complete the following steps on your fedora CentOS host.}}
# OpenSSH should have been installed by default. Lets confirm this by issuing the command:<br /> <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:<br /><code>systemctl service sshd status sshd.service</code># Now check that the sshd service is configured to start automatically: <code>systemctl ischkconfig --enabled list sshd.service</code>
# Now that you know the service is running investigate what port number and protocol sshd uses by issuing the command:<br /><code>netstat -atunp</code>
# What protocol and port is the sshd process using?
# 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 How is the files <code>/etc/hosts</code> and <code>file /etc/services</code> related to the difference?
# <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

Navigation menu