git 更新密码之后出现了问题(雾)

记录一下今天的沙雕操作
  github密码太简单被强行更新,然后git clone按照平时那样用,输入新的密码,提示没有权限

wen@xiaobao /c/1111111/home
$ git clone git@github.com:XXXXXXXX/XXXX.git
Cloning into 'cppPractice'...
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

参考了下搜到的在 控制面板\用户帐户\凭据管理器,Windows凭据改掉git的密码。
  然而还是不行。是不是ssh的问题?把.ssh里面的id_rsa.pub内容拷贝到github网页上的settings->ssh->SSH and GPG keys->SSH keys->New SSH key里面,提示Key is already in use。
  找了个测试ssh连接的命令:

wen@xiaobao /c/1111111/home
$ ssh -T git@github.com
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
git@github.com: Permission denied (publickey).

照常输了三次新的github密码,Permission denied (publickey),换了个长一点的命令

wen@xiaobao /c/1111111/home
$ ssh -vT git@github.com
OpenSSH_8.0p1, OpenSSL 1.1.1c  28 May 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.255.112] port 22.
debug1: Connection established.
debug1: identity file /c/Users/wen/.ssh/id_rsa type 0
debug1: identity file /c/Users/wen/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_dsa type -1
debug1: identity file /c/Users/wen/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/wen/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/wen/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_xmss type -1
debug1: identity file /c/Users/wen/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.0
debug1: Remote protocol version 2.0, remote software version babeld-dae25663
debug1: no match: babeld-dae25663
debug1: Authenticating to github.com:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /c/Users/wen/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
debug1: Will attempt key: /c/Users/wen/.ssh/id_dsa
debug1: Will attempt key: /c/Users/wen/.ssh/id_ecdsa
debug1: Will attempt key: /c/Users/wen/.ssh/id_ed25519
debug1: Will attempt key: /c/Users/wen/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
debug1: Server accepts key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
debug1: Trying private key: /c/Users/wen/.ssh/id_dsa
debug1: Trying private key: /c/Users/wen/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/wen/.ssh/id_ed25519
debug1: Trying private key: /c/Users/wen/.ssh/id_xmss
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).

太长了看不懂,大概就是连接成功了,不是没有reply的问题。
  ssh目录下id_rsa,id_rsa.pub,known_hosts仨文件齐全,也不是缺少私钥id_rsa问题。
  ssh 没有权限,看到这样一句话:

难道说私钥id_rsa的密码不是github的密码???试了一下之前的ssh密码。

wen@xiaobao /c/1111111/home
$ ssh -vT git@github.com
OpenSSH_8.0p1, OpenSSL 1.1.1c  28 May 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.255.112] port 22.
debug1: Connection established.
debug1: identity file /c/Users/wen/.ssh/id_rsa type 0
debug1: identity file /c/Users/wen/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_dsa type -1
debug1: identity file /c/Users/wen/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/wen/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/wen/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/wen/.ssh/id_xmss type -1
debug1: identity file /c/Users/wen/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.0
debug1: Remote protocol version 2.0, remote software version babeld-dae25663
debug1: no match: babeld-dae25663
debug1: Authenticating to github.com:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /c/Users/wen/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
debug1: Will attempt key: /c/Users/wen/.ssh/id_dsa
debug1: Will attempt key: /c/Users/wen/.ssh/id_ecdsa
debug1: Will attempt key: /c/Users/wen/.ssh/id_ed25519
debug1: Will attempt key: /c/Users/wen/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
debug1: Server accepts key: /c/Users/wen/.ssh/id_rsa RSA SHA256:iIg4WRUuM6bSmvbvW9FUbP5Q2m+nMSHC2jCE03CT4CI
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([192.30.255.112]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
Hi thenamehasbeentake! You've successfully authenticated, but GitHub does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3104, received 2364 bytes, in 2.3 seconds
Bytes per second: sent 1379.3, received 1050.5
debug1: Exit status 1

只输了一次密码,原来让我输三次密码是因为密码输错错了…
一句话概括:

wen@xiaobao /c/1111111/home
$ ssh -T git@github.com
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Hi thenamehasbeentake! You've successfully authenticated, but GitHub does not provide shell access.

试一试push:

wen@xiaobao /c/1111111/home/gitPractice (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.(use "git push" to publish your local commits)nothing to commit, working tree cleanwen@xiaobao /c/1111111/home/gitPractice (master)
$ git push origin master
Enter passphrase for key '/c/Users/wen/.ssh/id_rsa':
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 255 bytes | 127.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:thenamehasbeentake/gitPractice.git043500d..71489a0  master -> master

搞了半天原来是理解错了passphrase for id_rsa的含义,这个密码跟git的账号密码不是同一个,当初配环境的时候没仔细看,弄出了这样让人啼笑皆非的睿智操作。  
  震惊,git密码更新导致ssh失效?ssh配置连接正常却permission denied?这背后到底是道德的沦丧还是人性的扭曲。


总结一下:git密码更新之后,大概只需要改一下凭据就够了…

git 更新密码之后出现异常(雾)相关推荐

  1. Authentication failed for错误解决(Git更新密码)

    作者报错原因:公司要求更改git密码,更改后导致IDEA中的密码无法更新,拉去.提交等报Authentication failed for错误 解决过程: 1.在网上找了很多解决办法,几乎都是说去控制 ...

  2. statusbar 尺寸 显示图标_StatusBar 图标展示流程 - 状态栏(StatusBar)镜头布局分析...- git完代码后的异常_169IT.COM...

    本页文章导读: ▪StatusBar 图标展示流程       StatusBar 图标显示流程 StatusBar 图标显示流程  (2010-11-05 15:23:29)转载分类: Androi ...

  3. linux git忘记密码,Linux下 保存 git账号密码

    一.通过文件方式 1.在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入内容格式: touch .git-credentials vim .git-crede ...

  4. Git clone密码输入错误如何修改

    一步教你解决git clone密码错误需要修改的问题 当git clone时候,第一次会让你输入用户名和密码,如果密码输错的话,之后执行git clone则会直接报错. 报错提示为:fatal: Au ...

  5. 关于svn更新失败,clearup异常解决

    关于svn更新失败,clearup异常解决 参考文章: (1)关于svn更新失败,clearup异常解决 (2)https://www.cnblogs.com/eric-fang/p/8376500. ...

  6. python调用git生成log文件_python解析git log后生成页面显示git更新日志信息

    使用git log可以查到git上项目的更新日志. 如下两个git项目,我想把git的日志信息解析成一个便于在浏览器上查看的页面. https://github.com/gityf/lua https ...

  7. git 更新远程分支列表(亲测)

    有时会遇到git branch -a时总是不出现新的分支或者远程已经没有的分支在本地还有,这时就需要更新下本地的git分支保持和远程分支一致,使用下面命令即可: git remote update o ...

  8. IDEA Git更新

    为什么IDEA要对Git进行更新操作的呢,因为当我们提交项目的时候我们必须要更新到最新的项目然后才能够使我们在提交项目的过程中不出现错误. IDEA Git更新详细步骤 1 . 打开我们的IDEA , ...

  9. SpringBoot+Mybatis+Druid批量更新 multi-statement not allow异常

    SpringBoot+Mybatis+Druid批量更新 multi-statement not allow异常 参考文章: (1)SpringBoot+Mybatis+Druid批量更新 multi ...

最新文章

  1. Greenplum Hadoop分布式平台大数据解决方案实战教程
  2. es6 name属性
  3. Synchronize锁粒度
  4. VC中按钮控件的启用(enable)和禁用(disable)
  5. Java库可以软件著作权,(最新整理)软件著作权-源代码范本
  6. 关于电脑的十大误区,原来是这样!
  7. 程序员过关斩将-- 喷一喷坑爹的面向UI编程
  8. 【kibana】kibana 7.* 设置中文 汉化
  9. QEMU CVE-2020-14364 漏洞分析(含 PoC 演示)
  10. 微软亚洲研究院周明 | 从语言智能到代码智能
  11. 一次TypeScript, React, Node, MongoDB的模板式前后端分离开发实践
  12. 弱电工程综合布线施工过程控制
  13. #FFMPEG4.3.1#命令行实现视频码率转换、缩放、剪切、填充、旋转操作(3)
  14. No.1 Bomb Game
  15. nodejs之pool连接池
  16. php tp gii,TP电商项目:使用GII制作品牌管理
  17. 导入d2lzh_pytorch包会出现的问题以及解决方案
  18. 方法重载在同一个类中,方法名相同,参数不同,可以定义多个同名的方法根据不同的参数,可以调用不同的方法
  19. C++核心准则ES.56​:只在需要将一个对象显式移动到另外的作用域时使用std::move​
  20. 一起talk C栗子吧(第一百九十六回:C语言实例--DIY less命令五 )

热门文章

  1. vue 图片转base64的两种方法(包括h5+plus调取手机图片)
  2. 蓝桥杯java历年真题及答案整理(共100道题目及答案)
  3. 旧笔记本装linux系统
  4. 继戴姆勒之后 德国公司Bury就汽车通信相关专利授权投诉诺基亚
  5. sfc /scannow命令如何能用虚拟光驱完成修复?(xp下的办法)
  6. Adobe photoshop cc 2020,PS 2020问世啦!
  7. vue中v-for和v-if不能一起使用
  8. excel打开提示不适合这台计算机,《win10提示excle安装》 win10 :Excel文件打不开、显示“此应用无法在你的电脑上运行”怎么办?...
  9. power supply框架
  10. Windows系统上搭建私有云OwnCloud【保姆级别的教程】