Centos7 升级openssh_8

openssh 官网站点:https://www.openssh.com
openssh linux 下载首页:https://www.openssh.com/portable.html
openssh cloudflare cdn加速下载:https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
openssh HK下载:https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/
# Centos7 默认版本ssh
[root@localhost ~]# ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
# 备份配置
[root@localhost ~]# cp -r /etc/ssh/ /opt/ssh_bak
[root@localhost ~]# wget https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz
[root@localhost ~]# ls
openssh-8.0p1.tar.gz
[root@localhost ~]# tar -xf openssh-8.0p1.tar.gz
[root@localhost ~]# cd openssh-8.0p1/
[root@localhost openssh-8.0p1]# ./configure
[root@localhost openssh-8.0p1]# make && make install
[root@localhost openssh-8.0p1]# systemctl restart sshd
[root@localhost openssh-8.0p1]# ssh -V
OpenSSH_8.0p1, OpenSSL 1.0.2k-fips  26 Jan 2017

简书记录,美好生活

上一篇:linux服务器命令


下一篇:WinServer2012R2安装OpenSSH