- 論壇徽章:
- 0
|
本帖最后由 lingshiba 于 2014-11-13 13:34 編輯
fedroa 7升級(jí)openssh到6.71 openssl已經(jīng)升級(jí)到openssl-1.0.1j , configure時(shí)候報(bào)錯(cuò),指定位置也沒(méi)用 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/ssl --with-ssl-headers=/usr/local/ssl/include/ --with-ssl-lib=/usr/local/ssl/lib
看兩個(gè)命令查到不一樣- [root@localhost bin]# ssh -V
- OpenSSH_4.5p1, OpenSSL 0.9.8b 04 May 2006
- [root@localhost bin]# openssl version
- OpenSSL 1.0.1j 15 Oct 2014
- [root@localhost bin]# openssl version -a
- OpenSSL 1.0.1j 15 Oct 2014
- built on: Wed Nov 12 23:35:36 CST 2014
- platform: linux-elf
- options: bn(64,32) rc4(8x,mmx) des(ptr,risc1,16,long) idea(int) blowfish(idx)
- compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
- OPENSSLDIR: "/usr/local/ssl-1.0.1j/ssl"
- [root@localhost bin]#
復(fù)制代碼 下面是報(bào)錯(cuò)信息
checking OpenSSL header version... not found
configure: error: OpenSSL version header not found.
同樣步驟 centos5 都沒(méi)有問(wèn)題- 升級(jí)ssl
- tar -zxvf openssl-1.0.1j.tar.gz
- cd openssl-1.0.1j
- ./config --prefix=/usr/local/ssl-1.0.1j shared zlib-dynamic enable-camellia
- ./config -t
- make depend
- make && make test && make install
- cd /usr/local
- ln -s ssl-1.0.1j ssl
- vi /etc/ld.so.conf添加
- include ld.so.conf.d/*.conf
- /usr/local/ssl/lib
- cd /usr/local/ssl/lib
- ldconfig
- vi /root/.bash_profile添加SSL路徑(=后加上/usr/local/ssl/bin:)如:
- PATH=/usr/local/ssl/bin:$PATH:$HOME/bin
- source /root/.bash_profile
- 測(cè)試SSL版本openssl version
- 升級(jí)ssh
- tar -zxvf openssh-6.7p1.tar.gz
- cd openssh-6.7p1
- ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/ssl
- make
- mkdir /etc/sshold
- mv /etc/ssh/* /etc/sshold/
- make install
- /etc/init.d/sshd restart
- chkconfig --add sshd
- chkconfig sshd on
復(fù)制代碼 |
|