OpenSSH is a free tool widely used for remote login or remote file transfer. It uses SSH/SecSH protocol suite to provide encryption for network services. Its source code is available free to everyone. This article will help you to Install or Update OpenSSH Server in CentOS, RHEL, and Fedora systems.
Features of OpenSSH
- Open Source Project
- Free Licensing
- Strong Encryption (3DES, Blowfish, AES, Arcfour)
- X11 Forwarding (encrypt X Window System traffic)
- Port Forwarding (encrypted channels for legacy protocols)
- Strong Authentication (Public Key, One-Time Password, and Kerberos Authentication)
- Agent Forwarding (Single-Sign-On)
- Interoperability (Compliance with SSH 1.3, 1.5, and 2.0 protocol Standards)
- SFTP client and server support in both SSH1 and SSH2 protocols.
- Kerberos and AFS Ticket Passing
- Data Compression
Click here to know more details about OpenSSH features.
Step 1 – Install / Update OpenSSH Server
OpenSSH Server is available under default yum repositories. We can install or update the latest OpenSSH server using the following command available under yum repositories.
On CentOS/RHEL 7 Systems:
sudo yum install openssh-server
On Fedora and CentOS/RHEL 8 Systems:
sudo dnf install openssh-server
Step 2 – Start OpenSSH Service
After installing or upgrading OpenSSH’s latest rpm packages, start the service using the following command and make it autostart on system boot.
sudo systemctl enable sshd
sudo systemctl restart sshd
Step 3 – Open Port in Firewall
If you are using iptables to secure your server, use the following command to open port for SSH access.
iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 22 -j ACCEPT
What Next: 5 Tips to secure openssh-server
6 Comments
How do I update ssh server 7.4 to 7.7 or even 8? This articles is missing what it says in title.
Great, that site comes with malware warnings and .. all bullshit.
repo from “rpm -Uvh http://centos.alt.ru/repository/centos/6/i386/centalt-release-6-1.noarch.rpm” has been blocked…do you have new link for openssh 6 repo..
Rahul, yes I agree. I was not clear. I believe that the CentAlt repo has a dependency on the EPEL repo.
I needed to install the EPEL repository as well: https://plone.lucidsolutions.co.nz/linux/centos/extra-packages-for-enterprise-linux-epel-v6-yum-repository-configuration
Hi Eric,
We always appreciate suggestion’s, But I found that OpenSSH newest update 6.6 is available in CentALT repository used in this article.