0
点赞
收藏
分享

微信扫一扫

git ssh 登陆失败: no matching host key type found. Their offer: ssh-dss 解决办法

东方小不点 2022-02-14 阅读 185

用记事本打开或创建.ssh/目录下的config文件。增加以下配置。

Host *
    KexAlgorithms +diffie-hellman-group1-sha1
    HostkeyAlgorithms +ssh-dss,ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-dss,ssh-rsa

具体原因可参考如下链接:
Using OpenSSH with legacy SSH implementations:http://www.openssh.com/legacy.html

举报

相关推荐

0 条评论