美文网首页
sshd高版本支持navicat等软件的ssh+证书通道

sshd高版本支持navicat等软件的ssh+证书通道

作者: 戏入子迷 | 来源:发表于2022-05-18 11:23 被阅读0次

新购AWS服务器,用pem证书登陆,使用命令行能够登陆,用ssh-client也能登陆服务器。

可是navicat连接rds,选择ssh方式,需要借助服务器的ssh通道。可是被服务器拒绝了。

查询服务器的ssh日志,发现:

sshd[171411]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

原来是:

OpenSSH 7.0 以上已经默认关闭了 ssh-dss

修复方法

打开 sshd_config,添加一行:

PubkeyAcceptedKeyTypes=+ssh-rsa

重启sshd服务器。再使用navcat连接mysql,通了。

相关文章

网友评论

      本文标题:sshd高版本支持navicat等软件的ssh+证书通道

      本文链接:https://www.haomeiwen.com/subject/fhfaurtx.html