![Linux-SSH升級及回退方案_第1頁](http://file3.renrendoc.com/fileroot_temp3/2022-1/20/5f8ae449-38c9-4f3c-be51-63cf31b44a9c/5f8ae449-38c9-4f3c-be51-63cf31b44a9c1.gif)
![Linux-SSH升級及回退方案_第2頁](http://file3.renrendoc.com/fileroot_temp3/2022-1/20/5f8ae449-38c9-4f3c-be51-63cf31b44a9c/5f8ae449-38c9-4f3c-be51-63cf31b44a9c2.gif)
![Linux-SSH升級及回退方案_第3頁](http://file3.renrendoc.com/fileroot_temp3/2022-1/20/5f8ae449-38c9-4f3c-be51-63cf31b44a9c/5f8ae449-38c9-4f3c-be51-63cf31b44a9c3.gif)
![Linux-SSH升級及回退方案_第4頁](http://file3.renrendoc.com/fileroot_temp3/2022-1/20/5f8ae449-38c9-4f3c-be51-63cf31b44a9c/5f8ae449-38c9-4f3c-be51-63cf31b44a9c4.gif)
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、LINUX-SSI升級及回退方案1. 驗證對比與記錄的當前ssh及ssl版本是否一致 ssh -V2. 驗證對比與記錄的當前系統(tǒng)版本是否一致cat /etc/redhat-release 一、配置 yum 源 方法一:服務(wù)器中插入對應(yīng)版本系統(tǒng)鏡像光盤。 cd /etc/yum.repos.d/ 轉(zhuǎn)移原始配置文件lsmkdir bak mv *.repo bak 重新生成配置文件 vi yum.repo local_rhel6 name=local_rhel6 baseurl=file:/mnt/ enabled=1 gpgcheck=0 掛載光盤鏡像 mount /dev/sr0 /mnt清除
2、 yum 緩存yum clean all 方法二:在系統(tǒng)中傳入 yum 軟件包 創(chuàng)建 yum 目錄 cd /home mkdir yum向 yum 文件夾中考入 yum 軟件包 cd /etc/yum.repos.d/ 轉(zhuǎn)移原始配置文件 ls mkdir bak mv *.repo bak 重新生成配置文件 vi yum.repo local_rhel6 name=local_rhel6 baseurl=file:/home/yum enabled=1 gpgcheck=0 掛載光盤鏡像 mount /dev/sr0 /mnt清除 yum 緩存 yum clean all 二、安裝 Telne
3、t 查看 telnet 安裝情況 rpm -qa | grep telnet 安裝 telnet yum install telnet* 將 disable 的 yes 修改為 no vi /etc/xinetd.d/telnet service telnet flags= REUSEsocket_type = streamwait =nouser =rootserver= /usr/sbin/in.telnetdlog_on_failure += USERIDdisable= no重啟服務(wù)service xinetd restart5/ 8查詢防火墻狀態(tài) /etc/init.d/iptabl
4、es status 臨時關(guān)閉防火墻 /etc/init.d/iptables stop 創(chuàng)建 telnet 登錄用戶 useradd teltest passwd teltest 測試 telnet 登錄 三、安裝相關(guān)軟件 查詢軟件安裝狀態(tài) rpm -qa | grep gcc rpm -qa | grep zlib-devel rpm -qa | grep openssl-devel rpm -qa | grep pam-devel 安裝軟件 yum -y install gcc yum -y install zlib-devel yum -y install openssl-devel y
5、um -y install pam-devel 四、編譯安裝 openssh cd /homemkdir sshtest傳入 openssh7.4 文件解壓并進入軟件目錄tar -xvf openssh-7.4p1.tar.gzcd openssh-7.4p1備份公鑰cp -ar /etc/ssh /etc/ssh_bak編譯安裝./configure-prefix=/usr-sysconfdir=/etc/ssh-with-pam-without-zlib-version- check-with-openssl-includes=/usr/-with-md5-passwords-mandir
6、=/usr/share/manmakemake install修改 /etc/ssh/sshd_config 文件sed -i's/GSSAPIAuthentication/#GSSAPIAuthentication/g'/etc/ssh/sshd_configsed -i's/GSSAPIAuthentication/#GSSAPIAuthentication/g'/etc/ssh/ssh_configsed - i's/GSSAPICleanupCredentials/#GSSAPICleanupCredentials/g'/etc/ssh/
7、sshd_config允許 root 登錄vi /etc/ssh/sshd_config#PermitRootLogin yes將 ssh 設(shè)置為開機啟動chkconfig sshd onRedhat7版本命令行有變化 systemctl enable sshd.service重啟服務(wù) service sshd restart驗證版本及登錄ssh -V關(guān)閉TELNET錄將disable的no修改為yesvi /etc/xinetd.d/telnetservice telnetflags= REUSEsocket_type = streamwait =nouser =rootserver= /u
8、sr/sbin/in.telnetdlog_on_failure += USERIDdisable= yes重啟服務(wù)service xinetd restart五、回退方案卸載舊版 sshyum -y remove openssh重裝舊版 sshyum -y install openssh openssh-clients openssh-server 將 ssh 設(shè)置為開機啟動 chkconfig sshd on重啟服務(wù)service sshd restart 驗證版本及登錄 ssh -V六、禁用R系列服務(wù)檢查 rsh、 rexec、 rlogin 服務(wù)是否關(guān)閉 監(jiān)聽端口 rexec 512 端口 rlogin 513 端口 netstat -an |grep 512 netstat -an |grep 513 netstat -an |grep 514chkconfig -list 基于
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 上海股權(quán)轉(zhuǎn)讓合同模板
- 450億廣告投放框架合同正式簽署
- 人力資源和社會保障局與勞動合同法改革探討
- 個體戶全職員工標準勞動合同合同范本
- 個人小型店面租賃合同樣本
- 個體藥店并購轉(zhuǎn)讓合同及附件
- 產(chǎn)業(yè)合作投資合同
- 交通事故賠償合同范本大全
- 個人家政服務(wù)勞務(wù)合同
- 喪葬禮儀服務(wù)合同模板
- 高校鑄牢中華民族共同體意識教育的路徑研究
- 《個人所得稅征管問題及對策研究》
- 2022年云南省公務(wù)員錄用考試《申論》真題(縣鄉(xiāng)卷)及答案解析
- 大學輔導員崗位考核參考指標
- 隱名股東協(xié)議股權(quán)代持的協(xié)議書(范本)
- 初級中學語文教師資格考試學科知識與教學能力試題及解答參考(2024年)
- 2024年高端裝備制造行業(yè)現(xiàn)狀分析:國家政策確保高端裝備制造行業(yè)有序發(fā)展
- 《帶一本書去讀研:研究生關(guān)鍵學術(shù)技能快速入門》筆記
- 知識圖譜智慧樹知到答案2024年浙江大學
- 2024年吉林省吉林市中考一模物理試題(解析版)
- Unit 2 Last weekend C Story time (教學設(shè)計)人教PEP版英語六年級下冊
評論
0/150
提交評論