升级OpenSSH

简介: 升级OpenSSH

ssh -V

1.安装必要组件:

yum install -y gcc openssl-devel pam-devel rpm-build

2.下载OpenSSH最新版本:

ftp.openbsd.org/pub/OpenBSD…

在以上网站找到最新版链接并下载解压

wget ftp.openbsd.org/pub/OpenBSD…

tar -zxvf openssh-7.5p1.tar.gz -C /usr/local/bin

3.到openssh-7.5p1目录下编译并安装最新版OpenSSH:

./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-tcp-wrappers

如果没报错则执行安装命令

make && make install

4.查看OpenSSH版本信息

ssh -V

5.修改配置

vim /etc/ssh/sshd_config

去掉此行#,如果想远程能够远程登录root用户

#PermitRootLogin yes

6.重启并处理异常

service sshd restart

如果出现以下异常

/etc/ssh/sshd_config line 81: Unsupported option GSSAPIAuthentication

/etc/ssh/sshd_config line 83: Unsupported option GSSAPICleanupCredentials

则注释掉相关行数即可。


目录
相关文章
|
3月前
|
安全 Linux Shell
CentOS7下快速升级至OpenSSH9.3p2安全版本
CentOS7下快速升级至OpenSSH9.3p2安全版本
183 0
|
3月前
|
安全 Linux
CentOS7下快速升级至OpenSSH9.4p1安全版本
CentOS7下快速升级至OpenSSH9.4p1安全版本
155 1
|
安全 Linux Shell
CentOS7下快速升级OpenSSH至8.9p1安全版本
CentOS7下快速升级OpenSSH至8.9p1安全版本
2221 0
CentOS7下快速升级OpenSSH至8.9p1安全版本
|
5月前
|
Linux 网络安全
suse 12 升级 OpenSSH-7.2p2 到 OpenSSH-8.4p1
suse 12 升级 OpenSSH-7.2p2 到 OpenSSH-8.4p1
118 0
|
网络安全 数据安全/隐私保护
CentOS6.5下升级openssl-1.1.1g与openssh-8.3p1
CentOS6.5下升级openssl-1.1.1g与openssh-8.3p1
398 0
CentOS6.5下升级openssl-1.1.1g与openssh-8.3p1
|
Linux
CentOS7下升级OpenSSL和OpenSSH
CentOS7下升级OpenSSL和OpenSSH
394 0
CentOS7下升级OpenSSL和OpenSSH
|
Linux 网络安全
CentOS 7 下升级 OpenSSH 7.4p1 到 OpenSSH 8.4p1
CentOS 7 下升级 OpenSSH 7.4p1 到 OpenSSH 8.4p1
398 0
|
Linux 网络安全
使用 CentOS 系统升级 OpenSSH
使用 CentOS 系统升级 OpenSSH
647 0
使用 CentOS 系统升级 OpenSSH

热门文章

最新文章