rhel6.5升級ssl1.1.1d和openssh-8.1p1-創(chuàng)新互聯(lián)

注意
1.ssh升級之后root用戶默認(rèn)禁止登錄,需要有一個可以登錄的普通用戶。設(shè)置位置在/etc/ssh/sshd_config 修改 PermitRootLogin 為yes 或 no 即可
2.升級之后sshd默認(rèn)是關(guān)閉的,需要設(shè)置開機(jī)自啟。
3.升級成功之后要及時關(guān)閉telnet
4.一定要關(guān)閉selinux不然的話開機(jī)自啟無法生效
一、安裝telnet
1.yum install telnet-server -y
2.chkconfig telnet on
3./etc/init.d/xinetd start
4.netstat -lntup|grep 23
5.echo "pts/0" >>/etc/securetty
  echo "pts/1" >>/etc/securetty
6.vim /etc/pam.d/remote
     #%PAM-1.0
     #auth       required     pam_securetty.so   注釋這行
     或者sed -i 's/auth       required/#auth       required/g'  /etc/pam.d/remote
7. /etc/init.d/xinetd restart
8.設(shè)置白名單并測試telnet 登錄
二、安裝依賴包
1.yum -y install gcc-c++ zlib zlib-devel pam-devel
2.cp /usr/lib64/libssl.so.1.0.1e{,.bak}
  cp /usr/lib64/libcrypto.so.1.0.1e{,.bak}  #備份依賴包
三、安裝openssl源碼包
1.tar -xvf openssl-1.1.1d.tar.gz
2.cd openssl-1.1.1d/
3. ./config --prefix=/usr/local/openssl/1.1.1d --shared  #編譯安裝 查看路徑
4.make
5.mv /usr/bin/openssl /usr/bin/openssl.bak   #刪除系統(tǒng)上的openssl
  rpm -e `rpm -qa | grep openssl` --nodeps   #
6.make install
7.ln -s  /usr/local/openssl/1.1.1d/bin/openssl /usr/bin/openssl
  ln -s /usr/local/openssl/1.1.1d/include/openssl  /usr/include/openssl
8.echo "/usr/local/openssl/1.1.1d/lib" >> /etc/ld.so.conf
9.ldconfig   #刷新配置
10.ldconfig  -v #查看鏈接路徑是否正確
四、升級ssh
1.tar -xvf openssh-8.1p1.tar.gz
2.cd openssh-8.1p1/ 
3.mv  /etc/pam.d/sshd /etc/pam.d/sshd.bak
4. ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-ssl-dir=/usr/local/openssl/1.1.1d/    --with-md5-passwords --mandir=/usr/share/man --without-openssl-header-check
5.make
6.rpm -e `rpm -qa | grep openssh` --nodeps
7.make install
8.cp contrib/redhat/sshd.init /etc/init.d/sshd
  cp contrib/redhat/sshd.pam /etc/pam.d/sshd
9.ssh -V
10.service  sshd  start
11.chkconfig  --add sshd 
   chkconfig sshd on
12.vim /etc/ssh/sshd_config   PermitRootLogin yes    #允許root登錄,可以不設(shè)置,但要需要保證有一個可登錄的普通用戶。
   或者 sed -i 's/^\#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config 
12.service  sshd restart

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

創(chuàng)新互聯(lián)建站成立與2013年,先為古藺等服務(wù)建站,古藺等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為古藺企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。

網(wǎng)站名稱:rhel6.5升級ssl1.1.1d和openssh-8.1p1-創(chuàng)新互聯(lián)
網(wǎng)址分享:http://muchs.cn/article8/hiiip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名、動態(tài)網(wǎng)站、網(wǎng)站維護(hù)面包屑導(dǎo)航、網(wǎng)站收錄、網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站