13,420
edits
Changes
no edit summary
# OpenSSH should have been installed by default. Let's 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 <b>openssh-clients</b> and <b>openssh-server</b>
# <b><code><span style="color:#3366CC;font-size:1.2em;">openssh-server</span></code></b> installs a service called '''sshd''', confirm . 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># Now Also, check that the sshd service is configured to start automatically: <b><code><span style="color:#3366CC;font-size:1.2em;">chkconfig --list 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?