Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - CentOS7

1 byte added, 07:45, 7 July 2015
no edit summary
# <b><code><span style="color:#3366CC;font-size:1.2em;">openssh-server</span></code></b> installs a service called '''sshd'''. Confirm that this service is running by issuing the command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">service sshd status</span></code></b>
# Also, you should confirm that the sshd service is enabled (to start automatically upon boot-up). To do this issuing the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">systemctl list-unit-files | grep sshd</span></code></b>
# 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</span></code></b>
# What protocol and port is the sshd process using? What is the state of the port? Why wouuld you think that UDP ports don't have a state?
# 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?
13,420
edits