How to Install
How to Install
Introduction:
Secure Shell (SSH) is a cryptographic protocol that allows a client machine to interact
with a remote server in a secure environment.
Prerequisites:
Enter the following command from your terminal to start the installation process:
This command installs both the OpenSSH client applications, as well as the OpenSSH
server daemon, sshd.
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019
In this example, the system informs us that the latest version is already present.
When active, sshd continuously listens for client connections from any of the client
tools. When a connection request occurs, sshd sets up the correct connection.
As we have previously started the service, the output confirms that it is active.
We can check if the service has stopped by verifying the status. The output shows that
the service is inactive and the time and date when the status last changed.
PermitRootLogin no
Port 2002
Remember to uncomment the lines that you edit by removing the hashtag.
By default, SELinux only allows port 22 for SSH. So, what we need to do is enablling
newly created port through SELinux. To do that, run the commands below:
Now we can run the semange commend again to allow the new port through
SELinux.
After that, run the commands below to allow the new port through the firewall.
Now verify that SSH is now running on the new port by running the commands below