原始碼升級SUSE openssh
1.check old openssl
rpm -q openssl
openssl version
which openssl
whereis openssl
ls /etc/ssl
2、backup old openssl
mkdir /home/ssl_bak
mv /usr/bin/openssl /home/ssl_bak
mv /etc/ssl /home/ssl_bak/etc_ssl
mv /usr/include/openssl /home/ssl_bak/include_openssl
3、install
1)zlib
cd /usr/local/src
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install
ll /usr/local/openssl
ls /usr/local/openssl/{bin,include,lib}
2)openssl
cd /usr/local/src
tar -zvxf openssl-1.0.2m.tar.gz
cd openssl
./config --prefix=/usr/local/openssl --openssldir=/etc/ssl shared
make
make install
ll /usr/local/openssl/{bin,include,lib}
ll /etc/ssl/
4.configure & upgrade opensll
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
vi /etc/ld.so.conf
/usr/local/lib64
/opt/kde3/lib64
--add the following line
/usr/local/openssl/lib
:wq
ldconfig
/usr/bin/openssl version -a
5.uninstall old openssh
service sshd stop
rpm -qa|grep openssh
rpm -e openssh --nodeps
6.upgrade openssh
cd /usr/local/src
tar -zxvf openssh-7.6p1.tar.gz
cd openssh
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-openssl --with-md5-passwords --mandir=/usr/share/man --with-zlib --with-ssl-engine --with-ssl-dir=/usr/local/openssl
make
make install
ssh -V
7.setting up sshd service autostart
cd /usr/local/openssh/contrib
cp suse/rc.sshd /etc/init.d/sshd
chmod 755 /etc/init.d/sshd
chkconfig --add sshd
chkconfig sshd on
vi /etc/ssh/sshd_config
--add/modify the following line
PermitRootLogin yes
--uncomment the following line
PasswordAuthentication yes
:wq
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8484829/viewspace-2674423/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- suse11 openssh 升級到8.0
- OpenSSH升級(從OpenSSH_7.4p1升級到OpenSSH_8.4p1) [操作指令碼]指令碼
- Ubuntu升級opensshUbuntu
- aix升級opensshAI
- 升級openssh7.9
- Linux openssh升級8.0Linux
- OpenSSH 原始碼原始碼
- Centos升級到openssh9.7CentOS
- redhat系統升級openssh到7.5Redhat
- Centos6.5 離線 Openssh 升級CentOS
- CentOS6.9下升級預設的OpenSSH操作記錄(升級到OpenSSH_7.6p1)CentOS
- Centos7 升級openssh到最高版本CentOS
- openssh 漏洞修復 openssl升級 OpenSSH_9.8p1麒麟系統
- Ctyun系統升級OpenSSH 9.3詳細教程
- Ubuntu16.04升級openssh-9.8p1Ubuntu
- Centos7 openssh升級到7.9p1CentOS
- centos6.5中openssh從5.3升級到7.3CentOS
- Openssh-7.9p1升級+系統調優
- RHEL6_CentOS6_Openssh8.0p1升級CentOS
- RockyLinux8伺服器升級openssh9.9Linux伺服器
- Centos7 升級至openssh-9.8p1CentOS
- 最佳實踐 | 原始碼升級gcc原始碼GC
- Centos5 原始碼升級sshdCentOS原始碼
- redhat 7.4從openssh7.6離線升級openssh8.4p1解決方法Redhat
- Openssh 8.4p1及Openssl 1.1.1h升級
- oraclelinux9.2內網升級OpenSSH9.8p1OracleLinux內網
- 升級openssh前安裝zlib報異常configure aborting
- openSSH升級公鑰失效Permission denied (publickey)解決方案
- openssh升級7.4p1至8.4p1、openssl升級至openssl-1.1.1h
- Centos 7.4系統升級OpenSSH 8.4p1服務CentOS
- Linux - openssh透過原始碼build rpm包Linux原始碼UI
- 【原始碼】Scrollsubplot:subplot函式的升級版原始碼函式
- RHEL7X_CentOS7X_升級Openssh7.6p1CentOS
- 原始碼分析:升級版的讀寫鎖 StampedLock原始碼
- MetaForce佛薩奇系統開發原始碼(升級版)原始碼
- ssh升級指令碼指令碼
- 適用於openEuler系統升級openssh9.8p1和openssl3.3.1
- 2020最新IT影片課程全面升級,原始碼+筆記+教程分享原始碼筆記