Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - CentOS7 - HD2

130 bytes added, 10:59, 2 November 2016
no edit summary
<ol><li value="9">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;">netstat -atunp | more</span></code></b><br>What protocol and port is the sshd process using? What is the state of the port? Why would you think that UDP ports don't have a state?</li>
<li>Reissue the <b><code><span style="color:#3366CC;font-size:1.2em;">netstat</span></code></b> command without the '''-n''' option. What is the difference?</li>
<li>You can refer to the /etc/services file in order to determine a port number for a service. Issue the following command to confirm that port 22 is associated with ssh:<br><b><code><span style="color:#3366CC;font-size:1.2em;">grep ssh /etc/services</span></code></b>
<li>Make sure the '''sshd''' service is running on '''all 3 of your VM's'''</li>
<li>Remember that you can view the '''/etc/services''' file in case you need to reference a service with a corresponding port number.</li>
</ol>
13,420
edits