http://bbotte.blog.51cto.com/6205307/1394174/
1
2
|
[root@localhost ~]# ssh -V
OpenSSH_5.3p1, OpenSSL
1.0
.
0
-fips
29
Mar
2010
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
yum install zlib zlib-devel krb5-devel.x86_64 -y
wget http:
//www.openssl.org/source/openssl-1.0.1g.tar.gz
tar -xzf openssl-
1.0
.1g.tar.gz
cd openssl-
1.0
.1g
./config --prefix=/usr/local/ssl shared zlib-
dynamic
enable-camellia -DOPENSSL_NO_HEARTBEATS #添加 -DOPENSSL_NO_HEARTBEATS 选项
make
make install
openssl version
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/
include
/openssl /usr/
include
/opensslold
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/
include
/openssl/ /usr/
include
/openssl
echo
"/usr/local/ssl/lib/"
>> /etc/ld.so.conf
ldconfig -v|grep ssl
openssl version
|
1
|
openssl version -a
|
1
2
|
[root@localhost ~]# ssh -V
OpenSSH_5.3p1, OpenSSL
1.0
.
0
-fips
29
Mar
2010
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
wget http:
//mirror.internode.on.net/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz
yum install pam*
tar -xzf openssh-
6
.6p1.tar.gz
cd openssh-
6
.6p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --
with
-pam --
with
-zlib --
with
-ssl-dir=/usr/local/ssl --
with
-md5-passwords --mandir=/usr/share/man
make
make install
ssh -V
OpenSSH_6.6p1, OpenSSL
1.0
.1g
7
Apr
2014
service sshd restart
停止 sshd: [确定]
正在启动 sshd: [确定]
|
1
2
3
|
service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
|
1
2
3
4
5
|
service sshd restart
Stopping sshd: [ OK ]
Starting sshd: /etc/ssh/sshd_config line
81
: Unsupported option GSSAPIAuthentication
/etc/ssh/sshd_config line
83
: Unsupported option GSSAPICleanupCredentials
[ OK ]
|
1
|
[root@localhost openssh-
6
.6p1]# ./configure --prefix=/usr --sysconfdir=/etc/ssh --
with
-pam --
with
-zlib --
with
-ssl-dir=/usr/local/ssl --
with
-md5-passwords --mandir=/usr/share/man --
with
-kerberos5=/usr/lib64/libkrb5.so
|