当前位置:网站首页>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
边栏推荐
- 2022年在启牛开华泰的账户安全吗?
- Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
- Baidu digital person Du Xiaoxiao responded to netizens' shouts online to meet the Shanghai college entrance examination English composition
- SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
- Zero shot, one shot and few shot
- 数据库系统原理与应用教程(009)—— 概念模型与数据模型
- <No. 8> 1816. Truncate sentences (simple)
- 111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
- Sonar:Cognitive Complexity认知复杂度
- 核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
猜你喜欢

18 basic introduction to divider separator component of fleet tutorial (tutorial includes source code)

Time bomb inside the software: 0-day log4shell is just the tip of the iceberg

powershell cs-UTF-16LE编码上线

Common locking table processing methods in Oracle
![108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]](/img/c0/8a7b52c46eadd27cf4784ab2f32002.png)
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]

Unity中SmoothStep介绍和应用: 溶解特效优化

Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)

Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)

What development models did you know during the interview? Just read this one

全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
随机推荐
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
大佬们有没有人遇到过 flink oracle cdc,读取一个没有更新操作的表,隔十几秒就重复读取
千人规模互联网公司研发效能成功之路
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
小红书微服务框架及治理等云原生业务架构演进案例
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
In SQL, I want to set foreign keys. Why is this problem
Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
MySQL安装常见报错处理大全
<No. 8> 1816. Truncate sentences (simple)
UP Meta—Web3.0世界创新型元宇宙金融协议
【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
Steps of redis installation and self startup configuration under CentOS system
[shortest circuit] acwing1128 Messenger: Floyd shortest circuit