溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

suse11 openssh如何升級到8.0

發(fā)布時間:2021-11-08 17:06:32 來源:億速云 閱讀:344 作者:柒染 欄目:建站服務(wù)器

suse11 openssh如何升級到8.0,針對這個問題,這篇文章詳細介紹了相對應(yīng)的分析和解答,希望可以幫助更多想解決這個問題的小伙伴找到更簡單易行的方法。

SUSE 11 升級Openssh

openssh 官網(wǎng)下載地址:http://www.openssh.com/   openssh 8.0  發(fā)布于20190418

1.查看當前ssh 版本

ora-dbtest:~ #ssh -V

OpenSSH_6.6.1p1, OpenSSL 0.9.8j-fips 07 Jan 2009

s11:~ # cat /etc/SuSE-release

SUSE Linux Enterprise Server 11 (x86_64)

VERSION = 11

PATCHLEVEL = 3

s11:~ # ssh -V

OpenSSH_6.2p2, OpenSSL 0.9.8j-fips 07 Jan 2009

2.將安裝所需的安裝包放入/opt/openssh

root用戶執(zhí)行 

mkdir /opt/openssh

cd /opt/openssh/

包含如下包:

openssh-8.0p1.tar.gz  openssl-1.1.1b.tar.gz  zlib-1.2.11.tar.gz

3.安裝 zlib

root下執(zhí)行 

tar zxvf zlib-1.2.11.tar.gz

cd zlib-1.2.11/

./configure --shared

make

make install

4.安裝openssl

查看當前版本:openssl version -a

tar zxvf openssl-1.1.1b.tar.gz

tar zxvf openssl-1.0.2n.tar.gz

cd openssl-1.0.2n/

./config shared

make

make install

mv /usr/bin/openssl /usr/bin/openssl.old

ln -s /usr/local/bin/openssl /usr/bin/openssl

ln -s /usr/local/include/openssl /usr/include/openssl

echo "/usr/local/ssl/lib" >> /etc/ld.so.conf

ldconfig |grep openssl

/sbin/ldconfig -v

openssl version -a

5.安裝openssh

tar zxvf openssh-8.0p1.tar.gz

cd openssh-8.0p1/

./configure --prefix=/usr/ --sysconfdir=/etc/ssh -with-zlib -with-ssl-dir=/usr/local/ssl -with-md5-passwords mandir=/usr/share/man

  make

  make install

cp -p contrib/suse/rc.sshd /etc/init.d/sshd

chmod +x /etc/init.d/sshd

chkconfig --add sshd

cp sshd_config /etc/ssh/

echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

mv /usr/sbin/sshd{,.old}

mv /usr/bin/ssh{,.old}

cp sshd /usr/sbin/sshd

cp ssh /usr/bin/ssh

/etc/init.d/sshd restart

關(guān)于suse11 openssh如何升級到8.0問題的解答就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,如果你還有很多疑惑沒有解開,可以關(guān)注億速云行業(yè)資訊頻道了解更多相關(guān)知識。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI