使用ssh方式git clone远程版本库遇到的坑(一)

    xiaoxiao2021-03-25  267

    在git clone ssh://….的时候报错:

    nable to negotiate with : no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 fatal: Could not read from remote repository.

    解决办法:

    我在~/.ssh/config文件里添加以下内容: Host xxxx.yyyy.com KexAlgorithms +diffie-hellman-group1-sha1 Port portNumber User userName-yourDomain-com

    转载请注明原文地址: https://ju.6miu.com/read-274.html

    最新回复(0)