Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh-rsa Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

Updated on with 761 views

从git上clone项目的时候报错

Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh-rsa Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists

只需要找到你本地的ssh目录(比如:mac:/Users/zjs/.ssh win:C:\Users\Administrator.ssh)

然后新增文件config,并在文件中新增如下

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

image.pngimage.png



标题:Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh-rsa Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
作者:yanjing
地址:https://yanjingtp.cn/articles/2022/12/21/1671588091991.html