一、場景
克隆代碼庫發(fā)生報(bào)錯(cuò)
二、具體報(bào)錯(cuò)信息
Unable to negotiate with XXX port : no matching host key type found. Their offer: ssh-rsa,ssh-dss
三、解決方案
# 首先保證在主目錄下方,如果不是先運(yùn)行: cd ~
cd .ssh
vim config
如果沒有.ssh目錄就新建一個(gè)運(yùn)行:mkdir .ssh
然后往config文件中添加以下信息:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
再次嘗試即可成功文章來源:http://www.zghlxwxcb.cn/news/detail-506550.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-506550.html
到了這里,關(guān)于【已解決】Unable to negotiate with XXX port : no matching host key type found. Their offer: ssh-rsa的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!