Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - CentOS7

92 bytes removed, 07:02, 5 May 2015
no edit summary
# Use your c7host machine to complete this section
# OpenSSH should have been installed by default. Lets confirm this by issuing the command:<br /> <b> <code><span style="color:#3366CC;font-size:1.2em;">rpm -qa | grep ssh</span></code></b><
# You should see a number of packages installed including <code>openssh-clients</code> and <code>openssh-server</code>
# <b><code><span style="color:#3366CC;font-size:1.2em;">service network stopopenssh-server</span></code><code>openssh-server</codeb> installs a service called <code>'''sshd</code>''', confirm this service is running by issuing the command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">service network stopsshd status</span></code><code>service sshd status</codeb># Now check that the sshd service is configured to start automatically: <b><code><span style="color:#3366CC;font-size:1.2em;">service network stopchkconfig --list sshd</span></code><code>chkconfig --list sshd</codeb># Now that you know the service is running investigate what port number and protocol sshd uses by issuing the command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">service network stopnetstat -atunp</span></code><code>netstat -atunp</codeb>
# 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 <b><code><span style="color:#3366CC;font-size:1.2em;">service network stopnetstat</span></code><code>netstat</codeb> command without the '''-n''' option.
# What is the difference? How is the file '''/etc/services''' related to the difference?
# '''netstat''' is a very useful command for anything to do with networking. Read its man page and make sure you understand its output.
13,420
edits