windows 的git用ssh拉代码,提示以下错误:
Unable to negotiate with 10.106.41.111 port 7999: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在.ssh/config增加:
Host 10.106.41.111
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa