openssh update

Posted cool4ever

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openssh update相关的知识,希望对你有一定的参考价值。

openssh 下载地址

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

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

[[email protected] 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

 

以上是关于openssh update的主要内容,如果未能解决你的问题,请参考以下文章

openssh升级到7.5 为啥无法登陆

ubuntu怎么移除openssh server

Ubuntu16.04下安装openssh-server

aix 怎么安装openssh-6.6p1

openssh有啥用

如何卸载openssh