openssh update

openssh 下载地址

http://www.openssh.com/portable.html

INSTALL文件里面有升级所需的条件

[root@localhost openssh-7.1p1]# vim INSTALL

You will need working installations of Zlib and libcrypto (LibreSSL /
OpenSSL)

Zlib 1.1.4 or 1.2.1.2 or greater (ealier 1.2.x versions have problems):
http://www.gzip.org/zlib/

libcrypto (LibreSSL or OpenSSL >= 0.9.8f)
LibreSSL http://www.libressl.org/ ; or
OpenSSL http://www.openssl.org/

LibreSSL/OpenSSL should be compiled as a position-independent library
(i.e. with -fPIC) otherwise OpenSSH will not be able to link with it.
If you must use a non-position-independent libcrypto, then you may need
to configure OpenSSH --without-pie

然后看了下系统自带的zlib和openssl(libressl和openssl选一即可,机器本身就有openssl也就懒的下载了- - )都符合

二话不说

#./configure --prefix=/usr/local/openssh

#make && make install

#cd /usr/local/openssh/bin

把/usr/bin里面跟这里相同的命令做下备份 再把这些命令copy到/usr/bin下面

#/etc/init.d/sshd restart

# ssh -V
OpenSSH_7.1p1, OpenSSL 1.0.0-fips 29 Mar 2010

 

原文地址:https://www.cnblogs.com/cool4ever/p/5258067.html