当前位置:网站首页>Cenos openssh upgrade to version 8.4
Cenos openssh upgrade to version 8.4
2022-07-07 12:08:00 【Chenjijjn】
1 First of all to see SSH edition
ssh -V
2 yum Install dependency packages
yum -y install gcc gcc-c++ kernel-devel
3 Download installation package
zlib:wget http://www.zlib.net/zlib-1.2.11.tar.gz
openssl:wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz
openssh:wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.4p1.tar.gz
4 Unzip the installation package
tar xf openssh-8.4p1.tar.gz
tar xf openssl-1.1.1h.tar.gz
tar xf zlib-1.2.11.tar.gz
5 install zlib
cd zlib-1.2.11/
./configure --prefix=/usr/local/zlib && make -j 4 && make install
6 install openssl
cd openssl-1.1.1h/
./config --prefix=/usr/local/ssl -d shared
make -j 4 && make install
echo ‘/usr/local/ssl/lib’ >> /etc/ld.so.conf
ldconfig -v
7 install openssh
mv /etc/ssh /etc/ssh.bak
cd /openssh-8.4p1/
./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/ssl --with-zlib=/usr/local/zlib
make -j 4 && make install
8 sshd_config File modification
cho ‘PermitRootLogin yes’ >> /etc/ssh/sshd_config
echo ‘PubkeyAuthentication yes’ >> /etc/ssh/sshd_config
echo ‘PasswordAuthentication yes’ >> /etc/ssh/sshd_config
9 Backup
mv /usr/sbin/sshd /usr/sbin/sshd.bak
cp -rf /usr/local/openssh/sbin/sshd /usr/sbin/sshd
mv /usr/bin/ssh /usr/bin/ssh.bak
cp -rf /usr/local/openssh/bin/ssh /usr/bin/ssh
mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen.bak
cp -rf /usr/local/openssh/bin/ssh-keygen /usr/bin/ssh-keygen
10 start-up
systemctl start sshd
If it doesn't start
systemctl stop ssh.service
rm -rf /lib/systemd/system/sshd.service
systemctl daemon-reload
cp /usr/local/src/openssh-8.4p1/contrib/redhat/sshd.init /etc/init.d/sshd
/etc/init.d/sshd restart
systemctl status sshd
Add startup
chkconfig --add sshd
chkconfig --list sshd
边栏推荐
- Test the foundation of development, and teach you to prepare for a fully functional web platform environment
- 防红域名生成的3种方法介绍
- 关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
- 从工具升级为解决方案,有赞的新站位指向新价值
- <No. 8> 1816. 截断句子 (简单)
- 数据库系统原理与应用教程(009)—— 概念模型与数据模型
- zero-shot, one-shot和few-shot
- What are the technical differences in source code anti disclosure
- 百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
- 本地navicat连接liunx下的oracle报权限不足
猜你喜欢

Tsinghua Yaoban programmers, online marriage was scolded?

The Oracle message permission under the local Navicat connection liunx is insufficient

powershell cs-UTF-16LE编码上线

MATLAB實現Huffman編碼譯碼含GUI界面

Rationaldmis2022 array workpiece measurement

CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解

【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】

5V串口接3.3V单片机串口怎么搞?

<No. 8> 1816. 截断句子 (简单)

数据库系统原理与应用教程(011)—— 关系数据库
随机推荐
<No. 8> 1816. Truncate sentences (simple)
Baidu digital person Du Xiaoxiao responded to netizens' shouts online to meet the Shanghai college entrance examination English composition
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
Sign up now | oar hacker marathon phase III midsummer debut, waiting for you to challenge
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
顶级域名有哪些?是如何分类的?
Solve the problem that vscode can only open two tabs
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
zero-shot, one-shot和few-shot
La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
idea 2021中文乱码
NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
超标量处理器设计 姚永斌 第8章 指令发射 摘录
Rationaldmis2022 advanced programming macro program
Use references
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Rationaldmis2022 array workpiece measurement