麒麟操作系统升级openssh

1、从github下载openssh源码 https://github.com/openssh/openssh-portable
2、在服务器上执行编译并进行测试

tar zxvf openssh-X.YpZ.tar.gz
cd openssh
./configure # [options]
make && make tests

3、测试通过后通过执行make install来进行命令的安装

4、重启ssh服务

systemctl restart sshd

可能遇到的问题

  1. 提示缺失libcrypto依赖,通过执行yum install -y openssl-devel解决
  2. root用户无法登录,修改sshd-config文件,添加permitrootlogin yes配置,注意是sshd-config不是ssh-config
posted @ 2025-05-23 21:22  Hekk丶  阅读(550)  评论(0)    收藏  举报