Skip to Content

How to upgrade OpenSSH in Centos ?

How to upgrade OpenSSH in Centos ? 

1. First you need to install few dependencies, like development tools or build essentials and the other required packages : 

[email protected]:~ yum groupinstall "Development Tools"

[email protected]:~ yum install zlib-devel openssl-devel

 2 .   Download the OpenSSH version 8.0 

  3 Install PAM and SELinux Headers

[email protected]:~ yum install pam-devel libselinux-devel

 4.  Compile and install SSH from sources.

[email protected]:~ ./configure --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh

[email protected]:~ make

[email protected]:~ make install

 5.    Once you have installed OpenSSH, restart SSH and check the version of OpenSSH

[email protected]:~ ssh -V


OpenSSH_8.0p1, OpenSSL 1.1.0g