当前位置:网站首页>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
边栏推荐
- 108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
- 问下flinkcdc2.2.0的版本,支持并发,这个并发是指多并行度吗,现在发现,mysqlcdc全
- Swiftui tutorial how to realize automatic scrolling function in 2 seconds
- Superscalar processor design yaoyongbin Chapter 10 instruction submission excerpt
- What are the top-level domain names? How is it classified?
- sql里,我想设置外键,为什么出现这个问题
- 清华姚班程序员,网上征婚被骂?
- 盘点JS判断空对象的几大方法
- Let digital manage inventory
- [filter tracking] strapdown inertial navigation simulation based on MATLAB [including Matlab source code 1935]
猜你喜欢
[filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
UP Meta—Web3.0世界创新型元宇宙金融协议
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
Tsinghua Yaoban programmers, online marriage was scolded?
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
Detailed explanation of debezium architecture of debezium synchronization
软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
随机推荐
Rationaldmis2022 advanced programming macro program
小红书微服务框架及治理等云原生业务架构演进案例
Completion report of communication software development and Application
Various uses of vim are very practical. I learned and summarized them in my work
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
如何理解服装产业链及供应链
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
Problem: the string and characters are typed successively, and the results conflict
Swiftui swift internal skill: five skills of using opaque type in swift
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
Basic introduction to the 16 tabs tab control in the fleet tutorial (the tutorial includes source code)
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
Hi3516全系统类型烧录教程
Camera calibration (2): summary of monocular camera calibration
超标量处理器设计 姚永斌 第8章 指令发射 摘录
108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
盘点JS判断空对象的几大方法