npm安装错误:“主机密钥验证失败。”

我的NC

我想从我在Windows服务器上构建的Gitbucket获取模块。
但是当我使用时会出错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主机名@端口
    →确定
  • git clone git + ssh:// git @ IPaddress:Gitbucketport / root / modulename.git
    →确定

但是,我很好奇。

  1. 我重新安装了OpenSSH。
  2. git克隆上的指纹现在为ecdsa。
  3. git克隆上的指纹与服务器上ssh_host_ecdsa_key.pub中的指纹不匹配。

请帮我。谢谢。

阿克塞尔·埃克特(Axel Eckert)

更新您的本地known_hosts文件:

ssh-keyscan -t rsa server.com >>~/.ssh/known_hosts

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

SSH“主机密钥验证失败”错误

来自分类Dev

“主机密钥验证失败”?

来自分类Dev

Heroku composer安装:主机密钥验证失败

来自分类Dev

SSH连接问题,“主机密钥验证失败...”错误

来自分类Dev

SSH连接问题,“主机密钥验证失败...”错误

来自分类Dev

主机密钥验证失败。#015

来自分类Dev

主机密钥验证失败,使用SSH

来自分类Dev

无法安装@types软件包:主机密钥验证失败

来自分类Dev

Deja-dup失败,“主机密钥验证失败”

来自分类Dev

Deja-dup失败,“主机密钥验证失败”

来自分类Dev

rsync + rsync 失败,因为主机密钥验证失败

来自分类Dev

Jenkins管道Git错误:连接到远程存储库时“主机密钥验证失败”

来自分类Dev

无法“ git pull”-主机密钥验证失败

来自分类Dev

Team City Git“主机密钥验证失败”

来自分类Dev

scp-主机密钥验证失败-AzureDevOps

来自分类Dev

使用gitlab和jenkins的主机密钥验证失败

来自分类Dev

使用scp时主机密钥验证失败

来自分类Dev

使用mpi4py的主机密钥验证失败

来自分类Dev

docker alpine 9 构建期间“主机密钥验证失败”

来自分类Dev

OpenMPI:SGE 集群上的主机密钥验证失败

来自分类Dev

NPM安装错误:提取失败

来自分类Dev

由于ssh密钥,Git推送失败:主机密钥验证失败。从码头工人内部

来自分类Dev

NPM安装错误

来自分类Dev

NPM安装错误

来自分类Dev

无法通过ssh连接到主机:主机密钥验证失败

来自分类Dev

将host_key_checking设置为false的Ansible失败,并显示“主机密钥验证失败”。

来自分类Dev

从 Jenkins 连接到 EC2 实例失败:主机密钥验证失败

来自分类Dev

忽略子网的SSH主机密钥验证

来自分类Dev

验证旧格式的主机密钥指纹

Related 相关文章

热门标签

归档