How to upgrade OpenSSH under Linux system?

  
                

Recently, many Linux users have experienced problems when using OpenSSH. The solution is very simple. It is to install a new version of OpenSSH in Linux. So how do you upgrade OpenSSH under Linux?

Note: Do not upgrade process to restart sshd service, otherwise it will not connect remote! !

The upgrade version is: openssh-6.6p1

Upgrade method:

1. Load the local source (the method does not describe it)

2. Execute the following Command

yum install bash -y

yum install -y zlib zlib-devel openssl openssl-devel

tar -zxvf openssh-6.6p1.tar.gz -C /Usr/local/src/

cd /usr/local/src/openssh-6.6p1/

cp /etc/init.d/sshd /etc/init.d/sshd.old

tar -cvf ssh.bak.tar /etc/ssh

yum install gcc -y

3, uninstall the old version

rpm -qa

Copyright © Windows knowledge All Rights Reserved