问题
命令: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote git@172.16.5.77:flexible-settlement/fss-admin-web.git
输出:
错误: Unable to negotiate with 172.16.5.77 port 22: 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.
解决
在id_rsa.pub目录新建config文件,内容如下:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa