Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - CentOS7 - HD2

6 bytes added, 10:55, 2 November 2016
no edit summary
# You should see a number of packages installed including <b>openssh-clients</b> and <b>openssh-server</b>
# The '''openssh-server''' package installs a service called '''sshd'''.
# Login as '''root ''' and confirm that this service is running by issuing the command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">systemctl status sshd</span></code></b>
<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 | grep sshd</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>
13,420
edits