赞
踩
windows下使用git bash拉代码报错如下:
- Unable to negotiate with 192.168.1.18 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.
解决方法:
在用户目录下的 .ssh文件夹下新建一个 config 文件,添加:
- Host *
- HostkeyAlgorithms +ssh-rsa
- PubkeyAcceptedKeyTypes +ssh-rsa
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。