当前位置:网站首页>Upgrade opsenssh to 8.8p1
Upgrade opsenssh to 8.8p1
2022-06-25 12:23:00 【lihongbao80】
One 、 Before downloading
1、 Check the specific version
https://www.openssh.com/openbsd.html
https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/
2、 Download the latest version
[[email protected] ~]# wget --no-check-certificate https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
wget https://ftp.openssl.org/source/openssl-1.1.1g.tar.gz # This is not loaded
3、 install telnet spare ( Optional )
Install the new ssh after , As long as the configuration is ready to start , You can switch seamlessly , But you can't connect if you disconnect , To prevent this , We can install telnet As a backup , If you can make sure you don't disconnect in the middle , This step can be ignored
1. install
[[email protected] ~]# yum install telnet telnet-server -y
2. start-up
[[email protected] ~]# systemctl enable telnet.socket
Created symlink from /etc/systemd/system/sockets.target.wants/telnet.socket to /usr/lib/systemd/system/telnet.socket.
[[email protected] ~]# systemctl start telnet.socket
3. Connect
# telnet It's forbidden by default root User connection , Our husband became an ordinary user
[[email protected] ~]# useradd testuser
[[email protected] ~]# passwd testuser
Change user testuser Password .
new password :
Reenter the new password :
passwd: All authentication tokens have been successfully updated .
# Find another machine to connect and test
[[email protected] ~]# telnet 192.168.180.47
Trying 192.168.180.47...
Connected to 192.168.180.47.
Escape character is '^]'.
Kernel 5.4.6-1.el7.elrepo.x86_64 on an x86_64
test2 login: testuser
Password:
[[email protected] ~]$ su - root
Two 、 upgrade openssh
1、 Dependencies required for installation
[[email protected] ~]# yum install zlib-devel openssl-devel pam-devel -y
2、 Backup
[[email protected] ~]# mkdir /etc/ssh_old
[[email protected] ~]# mv /etc/ssh/* /etc/ssh_old/
3、 decompression 、 Compilation and installation
[[email protected] ~]# tar xzvf openssh-8.8p1.tar.gz
[[email protected] ~]# cd openssh-8.8p1/
[[email protected] openssh-8.8p1]# ./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/lib64/ --with-zlib --with-pam --with-md5-password --with-ssl-engine --with-selinux
4、 install
[[email protected] openssh-8.8p1]# make && make install
5、 verification
[[email protected] openssh-8.8p1]# ssh -V
OpenSSH_8.8p1, OpenSSL 1.0.2k-fips 26 Jan 2017
[[email protected] openssh-8.8p1]# ls /etc/ssh
moduli sshd_config ssh_host_dsa_key.pub ssh_host_ecdsa_key.pub ssh_host_ed25519_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key
6、 To configure
1、 modify sshd_config
[[email protected] openssh-8.8p1]# vim /etc/ssh/sshd_config
# Example : To configure root Sign in , According to your previous configuration
PermitRootLogin yes
2. start-up
# Remove the old ssh service , Prevent new conflicts
[[email protected] openssh-8.8p1]# mv /usr/lib/systemd/system/sshd.service /etc/ssh_old/sshd.service
[[email protected] openssh-8.8p1]# mv /usr/lib/systemd/system/sshd.socket /etc/ssh_old/sshd.socket
# Copy some files in the unzip package
[[email protected] openssh-8.8p1]# cp -a contrib/redhat/sshd.init /etc/init.d/sshd
# Restart
[[email protected] openssh-8.8p1]# systemctl daemon-reload
[[email protected] openssh-8.8p1]# systemctl restart sshd
# Add self start
[[email protected] openssh-8.8p1]# chkconfig --add sshd
[[email protected] openssh-8.8p1]# chkconfig sshd on
3、 ... and 、 Possible problems :
We are using Putty The following error messages will appear when connecting to the server :
Putty Fatal Error: Can’t agree a key change algorithm (available: xxx……
So let's take this picture :
Literally , The error message is Putty Unable to interact with the server for key algorithm .
actually , With Linux Version update , The encryption algorithms supported by the server are also constantly updated , The old version Putty I won't support it SSH The new encryption algorithm of the server , There will be such problems .
therefore , We just need to update the Putty Program , You can solve this problem ! You can download the latest version here Putty Program :https://www.putty.org/
Four 、 upgrade openssl( I didn't upgrade )
1、 Backup
$ mv /usr/bin/openssl /usr/bin/openssl_old
2、 install
$ tar xzvf openssl-1.1.1g.tar.gz
$ cd openssl-1.1.1g/
$ ./config shared && make && make install
3、 Configure soft connection
$ ln -s /usr/local/bin/openssl /usr/bin/openssl
If you execute openssl version Report the following mistakes
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Then execute the following command to solve :
$ ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/
$ ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/
The old version :
$ openssl_old version
OpenSSL 1.0.2k-fips 26 Jan 2017
边栏推荐
- R language uses GLM function to build Poisson logarithmic linear regression model, processes three-dimensional contingency table data to build saturation model, and poisgof function of epidisplay pack
- confluence7.4. X upgrade record
- MYSQL中对复杂JSON的更新
- 黑马畅购商城---8.微服务网关Gateway和Jwt令牌
- 19、wpf之事件转命令实现MVVM架构
- How to open an account for trading futures Shanghai nickel products online
- Kotlin学习笔记
- Database Series: MySQL index optimization summary (comprehensive version)
- 揭秘GaussDB(for Redis):全面对比Codis
- VFP a picture processing library, simple and easy to use, free of charge, worth recommending
猜你喜欢

The first techo day Tencent technology open day in 2022 will be held online on June 28

Black Horse Chang Shopping Mall - - - 3. Gestion des produits de base

为什么ping不通网站 但是却可以访问该网站?

使用php脚本查看已开启的扩展

15、wpf之button样式小记

Dark horse shopping mall ---3 Commodity management

Why can't the form be closed? The magic of revealing VFP object references

Linear regression of common mathematical modeling models for College Students

ROS 笔记(06)— 话题消息的定义和使用
![[regression analysis] understand ridge regression with case teaching](/img/95/91f6f2a018b8d320945b12562492eb.jpg)
[regression analysis] understand ridge regression with case teaching
随机推荐
R language uses ordinal or. The display function obtains the summary statistical information of the ordered logistic regression model (the odds ratio and its confidence interval corresponding to the v
Set the transparency of the picture to gradient from left to right
Understanding and construction of devsecops and Devops
[data midrange] what is the oneid of the data midrange? Isn't the master data fragrant?
[oceanbase] Introduction to oceanbase and its comparison with MySQL
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、epiDisplay包的poisgof函数对拟合的泊松回归模型进行拟合优度检验(检验模型效果)
2022 meisai D topic ideas sharing + translation
JS to realize the calculation of discrete aggregation points
[regression analysis] understand ridge regression with case teaching
Mpai data science platform SVM support vector machine classification \ explanation of regression parameter adjustment
Quarkus SaaS dynamic data source switching implementation, simple and perfect
Kotlin学习笔记
Pycaret successfully resolved the problem that 'sklearn model_ selection._ Search 'import name "\u check\u param\u grid"
The R language uses the follow up The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The type parameter specifies the line type of
Gradle knowledge points
devsecops与devops的理解与建设
The dist function of R language calculates the distance between two samples in dataframe data, returns the distance matrix between samples, and specifies the distance calculation method through the me
【数据中台】数据中台的OneID是个什么鬼,主数据它不香吗?
Kotlin Foundation
黑马畅购商城---8.微服务网关Gateway和Jwt令牌