因?yàn)橐?jí)ssh
,下載了ssh
最新的編譯安裝包(openssh-7.6p1
)、openssl
的編譯安裝包(OpenSSL 1.1.0f
)。
裝好openssl
之后,再裝openssh
,竟然提示openssh
不支持1.1.0
以上的openssl
!
想著再按照原來的方法裝一次openssl-1.0.2l
吧,真裝上了(./config shared zlib --prefix=/usr/local/openssl-1.0.2l
)。
用 openssl version
顯示的版本卻永遠(yuǎn)是1.1.0f
!openssh
也還是裝不上,即使我把1.0.2l
裝在一個(gè)新目錄,openssh
配置openssl
的目錄是新目錄,它也還是讀1.1.0f
的openssl
。。。
網(wǎng)上能找到的各種軟鏈、修改 /etc/ld.so.conf
的,我都試過了,1.1.0f
版本好像是生根了一樣,除不掉。。。
現(xiàn)在用which openssl
找出openssl
的位置,用ln -s
把1.0.2l
的bin/openssl
文件鏈到這了,用openssl version
顯示的版本已經(jīng)是1.0.2l
了,但是治標(biāo)沒治本,裝openssh
的時(shí)候,還是提示OpenSSL header version... 1010006f (OpenSSL 1.1.0f 25 May 2017)
,表示它不知道從哪里讀了一個(gè)1.1.0f
的版本,我明明裝了低版本!
./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr --with-md5-passwords --mandir=/usr/share/man --with-zlib=/usr/local/zlib
我的openssh
配置語句是這樣的,我把openssl 1.0.2l
裝在/usr
了
啊哈哈哈哈哈哈哈哈,我解決了,感謝知乎的答友提醒我看安裝包里的 INSTALL 文件,里面很詳細(xì),雖然是全英文,但是我眼神好,看到一句 ‘make update’當(dāng)時(shí)就想,我擦,還有這個(gè)操作,即使沒理解上下文,但是先試試吧,然后重新編譯了一次openssl:
./config shared --prefix=/usr/local/openssl (這一句我其實(shí)用過幾回了,都沒有效果)
make
make update (沒想到居然不是用make install?。?/p>
//以下是編譯openssh的結(jié)果,終于識(shí)別我想裝的版本啦?。。?/p>
checking OpenSSL header version... 100020cf (OpenSSL 1.0.2l 25 May 2017)
checking OpenSSL library version... 100020cf (OpenSSL 1.0.2l 25 May 2017)
checking whether OpenSSL's headers match the library... yes
checking if programs using OpenSSL functions will link... yes
....(此處省略)
OpenSSH has been configured with the following options:
User binaries: /usr/local/openssh/bin
System binaries: /usr/local/openssh/sbin
Configuration files: /etc/ssh
Askpass program: /usr/local/openssh/libexec/ssh-askpass
Manual pages: /usr/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/openssh/bin
Manpage format: doc
PAM support: yes
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support:
S/KEY support: no
MD5 password support: yes
libedit support: no
libldns support: no
Solaris process contract support: no
Solaris project support: no
Solaris privilege support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: yes
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Privsep sandbox style: seccomp_filter
Host: x86_64-pc-linux-gnu
Compiler: gcc
Compiler flags: -g -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -fPIE
Preprocessor flags: -I/usr/local/openssl/include -I/usr/local/zlib/include -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE
Linker flags: -L/usr/local/openssl/lib -L/usr/local/zlib -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -pie
Libraries: -lcrypto -ldl -lutil -lz -lcrypt -lresolv
+for sshd: -lpam
PAM is enabled. You may need to install a PAM control file
for sshd, otherwise password authentication may fail.
Example PAM control files can be found in the contrib/
subdirectory
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。