This tutorial describes a way to install the latest OpenSSH from the source package on the remote server.
First of all let's install the required build packages:
Next step would be to download the available RPM packages from the software repositories just in case if something goes wrong:
Next download the latest package from OpenSSH server:
tar xvf openssh-7.3p1.tar.gz
Now we can move forward with the compilation. I am going to have the following:
- Locate configuration files in
- Binaries will go to
ipv4support by default
- Enable the cached passwords and pam authentification
Backup the current configuration:
Run the configure tool to prepare installation:
Now we need to remove the currently installed OpenSSH. From this point your active shell session remains the only thread that has remote access to the server. Make sure that your internet connection is stable.
Now you can run make to install the new OpenSSH:
Create init.d script:
Edit the script and comment out the string that contains the following certificate:
Enable startup of the new OpenSSH server:
chkconfig sshd on
Now we are almost ready to start new OpenSSH server but my session was terminated when I ran the following, so don't do it:
If you are connecting to server using root user please edit the following file accordingly:
Let' run it in screen:
/etc/init.d/sshd stop && /etc/init.d/sshd start
Your session will be terminated after this. Now you can re-connect to server and verify the version of OpenSSH.