今天更新了一下Git版本,發(fā)現(xiàn)推送代碼的時候提示
Unable to negotiate with xx.xx.xx.xx port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
查了一下資料,解決辦法記錄一下:
解決方案:
1.打開('C:\Users\你當(dāng)前的賬戶名')
2.在這個文件夾中看是否有一個.ssh文件夾
3.打開文件夾,找到config文件,如果沒有的話,就新建一個,沒有后綴;
4.文件內(nèi)容寫入:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
5.保存文件,Git重新push,成功。文章來源:http://www.zghlxwxcb.cn/news/detail-643967.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-643967.html
到了這里,關(guān)于Git:Unable to negotiate with錯誤的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!