当前位置:网站首页>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
- Review and arrangement of HCIA
- 人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
- 【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
- Introduction and application of smoothstep in unity: optimization of dissolution effect
- zero-shot, one-shot和few-shot
- Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
- Swiftui swift internal skill: five skills of using opaque type in swift
猜你喜欢
5V串口接3.3V单片机串口怎么搞?
UP Meta—Web3.0世界创新型元宇宙金融协议
数据库系统原理与应用教程(009)—— 概念模型与数据模型
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
问题:先后键入字符串和字符,结果发生冲突
[filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]
<No. 8> 1816. Truncate sentences (simple)
超标量处理器设计 姚永斌 第8章 指令发射 摘录
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
随机推荐
What development models did you know during the interview? Just read this one
@What happens if bean and @component are used on the same class?
Steps of redis installation and self startup configuration under CentOS system
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
Superscalar processor design yaoyongbin Chapter 9 instruction execution excerpt
Hi3516 full system type burning tutorial
问下flinkcdc2.2.0的版本,支持并发,这个并发是指多并行度吗,现在发现,mysqlcdc全
问题:先后键入字符串和字符,结果发生冲突
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
Flet教程之 14 ListTile 基础入门(教程含源码)
超标量处理器设计 姚永斌 第8章 指令发射 摘录
<No. 8> 1816. Truncate sentences (simple)
<No. 8> 1816. 截断句子 (简单)
Software design - "high cohesion and low coupling"
Various uses of vim are very practical. I learned and summarized them in my work
The function of adding @ before the path in C #
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
数据库系统原理与应用教程(009)—— 概念模型与数据模型