解决git“Unable to negotiate with 218.244.143.137 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss”的问题

新建~/.ssh/config文件,文件内容如下:

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

欢迎转载,转载请注明出处。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注