当前位置:网站首页>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
边栏推荐
- How to connect 5V serial port to 3.3V MCU serial port?
- 消息队列消息丢失和消息重复发送的处理策略
- 顶级域名有哪些?是如何分类的?
- Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
- 【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
- Introduction to three methods of anti red domain name generation
- [texture feature extraction] LBP image texture feature extraction based on MATLAB local binary mode [including Matlab source code 1931]
- Sonar:Cognitive Complexity认知复杂度
- La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
- Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
猜你喜欢
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
HCIA复习整理
Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
本地navicat连接liunx下的oracle报权限不足
【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
Rationaldmis2022 advanced programming macro program
随机推荐
小红书微服务框架及治理等云原生业务架构演进案例
Common locking table processing methods in Oracle
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】
问题:先后键入字符串和字符,结果发生冲突
Ask about the version of flinkcdc2.2.0, which supports concurrency. Does this concurrency mean Multiple Parallelism? Now I find that mysqlcdc is full
Swiftui swift internal skill: five skills of using opaque type in swift
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
Baidu digital person Du Xiaoxiao responded to netizens' shouts online to meet the Shanghai college entrance examination English composition
Tsinghua Yaoban programmers, online marriage was scolded?
Improve application security through nonce field of play integrity API
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
消息队列消息丢失和消息重复发送的处理策略
源代码防泄密中的技术区别再哪里
idea 2021中文乱码
千人规模互联网公司研发效能成功之路
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Steps of redis installation and self startup configuration under CentOS system
Matlab implementation of Huffman coding and decoding with GUI interface