ソースアップグレードSUSEのopensshの

 

1.check古いopensslの
RPM -qのopenssl
opensslのバージョン
のopenssl
whereisはopensslの
lsのは/ etc / sslの

2、バックアップ古いのopenssl
ます。mkdir /ホーム/ ssl_bak
MVは/ usr / binに/ opensslの/ホーム/ ssl_bak
MVの/ etc / sslの/ホーム/ ssl_bak / etc_ssl
MVは/ usr /含める/ opensslの/ホーム/ ssl_bak / include_openssl

3、インストール
1)のzlibの
CDは/ usr / local / srcに
タール-zxvfのzlib-1.2.11.tar.gz
CDのzlib-1.2.11
に./configure
メイク
メイクインストール

LLは/ usr / local /用のOpenSSL
LSは/ usr / local / OpenSSLの/ {binに含まれ、LIB}

2)のopenssl
CDは/ usr / local / srcに
タール-zvxfのopenssl-1.0.2m.tar.gzの
CD opensslの
./config --prefix =は/ usr / local / opensslの--openssldir =の/ etc / sslの共有
メイク 
メイクインストール

LLは/ usr / local / OpenSSLの/ {binに含まれ、LIB}
LLの/ etc / SSL /

4.configure&アップグレードopensll
のln -sは/ usr / local / opensslの/ binに/ opensslのは/ usr / binに/ opensslの
LN -sは/ usr / local / opensslの/含める/ opensslのは/ usr /含ん/ opensslの

VIは/etc/ld.so.conf
は/ usr / local / lib64に
は/ opt / KDE3 / lib64に
--add次の行
を/ usr / local / opensslの/ libに
:WQ

ldconfigを

/ usr / binに/ opensslのバージョン-a

5.uninstall古いのOpenSSH
サービスsshdの停止
のrpm -qa | grepののopenssh
ます。rpm -e --nodepsのopenssh

6.upgradeのopensshの
CDは/ usr / local / srcに
タール-zxvfのopenssh-7.6p1.tar.gzの
CDののopenssh

./configure --prefix =は/ usr --sysconfdir =の/ etc / sshを--with-opensslの--with-MD5-パスワード--mandir =は/ usr / share / manを--with-zlibを--with-SSL-エンジン--with-SSL-dirを=は/ usr / local / opensslの
メイク 
メイクインストール

SSH -V

アップ7.setting SSHDサービスの自動起動
CDを/ usr / local /のopenssh / contribの
CP SUSE / rc.sshd /etc/init.d/sshd
のchmod 755 /etc/init.d/sshd

chkconfigを--addのsshd
のchkconfig sshdを上

VIは、/ etc / ssh / sshd_config
--add /変更するには、以下の行
のPermitRootLoginはい

次の行の--uncomment
たPasswordAuthenticationをはい
WQを:

发布了171 篇原创文章 · 获赞 46 · 访问量 19万+

おすすめ

転載: blog.csdn.net/LHDZ_BJ/article/details/100553162