最近突然ssh 服务连接出现 no matching host key type found. Their offer: ssh-dss 以前一直没有问题

可能的原因

  • openssh 服务升级,加密算法支持问题
  • 小心被挖矿了(以前一直可以,但是新的不行,主要查看sshd 服务配置)

一般解决方法

  • sshd 密码算法问题
命令行添加 ssh -oHostKeyAlgorithms=+ssh-dss user@legacyhost
添加HostKeyAlgorithms +ssh-dss到配置~/.ssh/config
如下:
Host somehost.example.org
    HostKeyAlgorithms +ssh-dss
  • 挖矿问题
挖矿的比较喜欢修改sshd 服务,以及搞一些定时任务,这个可以用工具查杀,或者进行ssh 配置对比,找到进行修改,注意清除
异常进程,清除定时任务

参考资料

https://www.jianshu.com/p/6e5a323dcd9c

 
 
 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-08-05
  • 2021-07-02
  • 2021-06-05
  • 2021-12-30
  • 2021-09-30
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案