Download the latest source code from one of the openssh.com mirrors.
Support for ssh version 1 was deprecated with version 8.0 . Make sure to read the release notes.
As of this writing, the latest ported version is 8.8.
Verify the integrity of the download by verifying its MD5/SHA1 checksum or gpg/pgp signature.
Explode openssh 8.8p1 source tarball with:
tar -xzvf openssh-8.8p1.tar.gz
The source code is unpacked into a newly created directory. Change to that directory
cd openssh-8.8p1
Now we need to create a makefile appropriate for our server. In our case, we want to install it in the default location that CentOS Linux uses, and enable some other useful features. (This should be a single line when entered in a bash shell.)
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc/ssh –datadir=/usr/share –with-md5-passwords
Once that is done, compile the software:
make
Install it, overwriting any previously installed version:
make install
One last step that is useful on Gnome systems is to compile and install the Gnome/GTK2 passphrase requester. Gnome programs, such as gFTP, use this tool.
Change to the contrib directory:
cd contrib
build the requester using the command:
make gnome-ssh-askpass2
Lastly, as root, copy the resulting binary to /usr/bin
cp gnome-ssh-askpass2 /usr/bin