phpstorm更换git密码

由于git远程服务端更改账号或密码,导致git客户端无法上传,出现( WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! )

phpstorm更换git密码

    打开phpstorm终端terminal
        git pull origin master 
    情况一:出现输入密码:更新即可
        gitlap@ip's password:
        Permission denied, please try again.
        gitlap@192.168.2.100's password:
        From 192.168.2.100:/usr/local/server/project
         * branch            master     -> FETCH_HEAD
        Already up to date.
    情况二:报错
        WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!   
        IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
        Someone could be eavesdropping on you right now (man-in-the-middle attack)!
        It is also possible that a host key has just been changed.
        The fingerprint for the ECDSA key sent by the remote host is   
        SHA256:wKjxNaDf1npDjyfXsZJGjUDxwNRjSppTPZLfu4DDr5s.
        Please contact your system administrator.
        Add correct host key in /c/Users/lap/.ssh/known_hosts to get rid of this message.
        Offending ECDSA key in /c/Users/lap/.ssh/known_hosts:1
        ECDSA host key for 192.168.2.100 has changed and you have requested strict checking.
        Host key verification failed.
        fatal: Could not read from remote repository.
        Please make sure you have the correct access rights and the repository exists.
    注意查看(Add correct host key in /c/Users/lap/.ssh/known_hosts to get rid of this message.)
    取中间的/Users/lap/.ssh/known_hosts路径,此路径是存储密码文件,删掉known_hosts文件,
    再次连接就弹出密码框啦

程序在于折腾,折腾好了删掉重来

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Lesson 3: Using GitHub to Collaborate 3.1 Creating a GitH...
    赤乐君阅读 6,355评论 3 11
  • 初始化git 配置git 使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名,...
    MiracleJQ阅读 1,561评论 0 0
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,872评论 0 10
  • 折腾了将近两个小时终于解决了OS下 git 上传文件到 github的问题,从头记录下来,为有同样问题的新手提供...
    yz_wang阅读 632评论 0 0
  • 《热爱生命》 我不去想是否能够成功 既然选择了远方 便只顾风雨兼程 我不去想能否赢得爱情 既然钟情于玫瑰 就勇敢地...
    涓涓浅语阅读 590评论 0 2

友情链接更多精彩内容