22. February 2022

RHEL 8 / CentOS 8 enable SSH service

By H. Cemre Günay

The following article will explain how to install and start SSH service on RHEL 8 / CentOS 8 system. SSH is a client-server service providing secure encrypted connections over the network connection.

Step 1: install the openssh package:

dnf install openssh-server

Step 2: Start the OpenSSH service by executing the following command:

systemctl start sshd

Step 3: Check the status of the sshd service:

systemctl status sshd

Step 4: Enable the SSH service to start after the reboot:

systemctl enable sshd

Step 5: Open the firewall rules to accept incoming traffic on SSH port 22:

firewall-cmd --zone=public --permanent --add-service=ssh

After that you just connect to the SSH Server by using root and the IP address from a remote client:

ssh root@192.168.34.189

And that’s it, if you have any questions please leave it in the comments.