我想从 Bitbucket 获取该模块,我在 Windows 服务器上构建了该模块。
但是当我使用时出现错误npm install
.
npm ERR! Error while executing:
npm ERR! C:\Users\~~~~\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t
ssh://git@IPaddress:Gitbucketport/root/modulename.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\~~~~\AppData\Roaming\npm-cache\_logs\2020-09-09T07_20_32_049Z-debug.log
当前验证结果。
- ssh 主机名@端口
→ OK
- git clone git+ssh://git@IP地址:Gitbucketport/root/modulename.git
→ OK
但是,我对某件事很好奇。
- 我重新安装了 OpenSSH。
- git 克隆上的指纹现在是 ecdsa。
- git 克隆上的指纹与服务器上 ssh_host_ecdsa_key.pub 中的指纹不匹配。
请帮我。谢谢。
更新本地的known_hosts文件:
ssh-keyscan -t rsa server.com >>~/.ssh/known_hosts
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)