码迷,mamicode.com
首页 > 其他好文 > 详细

openssh update

时间:2016-03-09 15:30:32      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

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

 

openssh update

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!