因為要升級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
顯示的版本卻永遠是1.1.0f
!openssh
也還是裝不上,即使我把1.0.2l
裝在一個新目錄,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
了,但是治標沒治本,裝openssh
的時候,還是提示OpenSSL header version... 1010006f (OpenSSL 1.1.0f 25 May 2017)
,表示它不知道從哪里讀了一個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 文件,里面很詳細,雖然是全英文,但是我眼神好,看到一句 ‘make update’當時就想,我擦,還有這個操作,即使沒理解上下文,但是先試試吧,然后重新編譯了一次openssl:
./config shared --prefix=/usr/local/openssl (這一句我其實用過幾回了,都沒有效果)
make
make update (沒想到居然不是用make install?。?/p>
//以下是編譯openssh的結(jié)果,終于識別我想裝的版本啦?。?!
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年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學院和江蘇省首批服務外包人才培訓基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術與教育服務機構,發(fā)展為教育服務業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構,是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術, 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術顧問,美國Dachieve 系統(tǒng)架構師,美國AngelEngineers Inc. 系統(tǒng)架構師。