恒美微站 Logo 恒美微站
  • 首页
  • 关于我们
  • 建站服务
  • 主题模板
  • 案例展示
  • 资讯中心
  • 联系我们

github 配置了公钥依旧提示git@github.com‘s password: Permission denied, please try again. 的解决办法

  • 首页
  • 资讯中心
  • /
  • github 配置了公钥依旧提示git@github.com‘s password: Permission denied, please try again. 的解决办法

相关资讯

Yii 2 从零创建 “Saying Hello“ 页面:Action、View 与路由分发全解析 2026/9/25 2:09:33
如何搭建高吞吐PD分离(Prefill/Decode Disaggregation):UCM异构资源管理完全指南 2026/9/25 2:09:33
.NET 4.0下的C#智能脚本编辑器:基于Roslyn的运行时编译与补全实现 2026/9/25 2:09:33

最新资讯

MongoDB 增删改查操作实战:用 TaoToken 统一 Key 打通 AI 工具链
争光了!Qwen2-72B登顶Hugging Face,TaoToken统一Key接入开源AI大模型实战
CRM不只是客户管理,更是团队协作的沟通工作台
计算机网络传输介质全解析:双绞线、光纤与无线传输选型指南
Atlas 300V 24G推理卡部署YOLO全流程指南:从驱动到推理
AI苹果育苗智能分选移栽机器人 QT信创完整工程

今日推荐

AI元人文:从工具使用到思维重构的深度探索
Python+CNN车牌识别实战:从数据预处理到模型训练与部署
Vim基础操作全攻略:保存退出、模式切换与高频命令实战

本周热门

BrewUI:给Homebrew套上图形界面,让macOS软件包管理更简单
BrewUI:让Homebrew包管理变得可视化与高效
公式与文本对齐全攻略:从Word到LaTeX的实用技巧

本月精选

自研推理加速器Redwood:两周内实现PyTorch模型高效部署的实战教程
V4L2摄像头采集实战:从camera_client.rar到出图全流程解析
从“谁发明了钢琴键”到知识问答智能体:RAG与记忆工程实践

github 配置了公钥依旧提示git@github.com‘s password: Permission denied, please try again. 的解决办法

发布时间:2026/9/25 2:09:33
github 配置了公钥依旧提示git@github.com‘s password: Permission denied, please try again. 的解决办法 最近在给新电脑配置GitHub的ssh时一切都是按照流程进行github上文档的配置流程进行配置但是把公钥配置到github后在对仓库进行操作的时候依旧出现一下提示gitgithub.coms password: Permission denied, please try again.但是按照提示输入github密码也不行。折腾了好久什么把key删除重新生成重新配置公钥什么文件权限把密钥配置到代理等等手段都试了依旧不行给我整的快怀疑人生了。但是同样的操作在gitlab上就是正常的看来我的操作没啥问题应该是跟github有关系了。后来使用ssh -Tv gitgithub.com去测试链接并且打印日志出现以下日志PS C:\Users\XeonYussh-Tvgitgithub.com OpenSSH_for_Windows_8.6p1, LibreSSL3.4.3 debug1: Authenticator provider$SSH_SK_PROVIDERdid not resolve;disabling debug1: Connecting to github.com[223.75.236.241]port22. debug1: Connection established. debug1: identityfileC:\\Users\\XeonYu/.ssh/id_rsatype0debug1: identityfileC:\\Users\\XeonYu/.ssh/id_rsa-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_dsatype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_dsa-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ecdsatype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ecdsa-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ecdsa_sktype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ecdsa_sk-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ed25519type-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ed25519-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ed25519_sktype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_ed25519_sk-certtype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_xmsstype-1debug1: identityfileC:\\Users\\XeonYu/.ssh/id_xmss-certtype-1debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6 debug1: Remote protocol version2.0, remote software version OpenSSH_7.6 debug1: compat_banner: match: OpenSSH_7.6 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002 debug1: Authenticating to github.com:22 asgitdebug1: load_hostkeys: fopen C:\\Users\\XeonYu/.ssh/known_hosts2: No suchfileor directory debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No suchfileor directory debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No suchfileor directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex:hostkey algorithm: rsa-sha2-512 debug1: kex: server-client cipher: chacha20-poly1305openssh.com MAC:implicitcompression: none debug1: kex: client-server cipher: chacha20-poly1305openssh.com MAC:implicitcompression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Serverhostkey: ssh-rsa SHA256:rEmlJenVMSL5GVemSY0Gk8WGw6B4ege4J85Mvup8R0 debug1: load_hostkeys: fopen C:\\Users\\XeonYu/.ssh/known_hosts2: No suchfileor directory debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No suchfileor directory debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No suchfileor directory debug1: Hostgithub.comis known and matches the RSAhostkey. debug1: Found keyinC:\\Users\\XeonYu/.ssh/known_hosts:1 debug1: rekey out after134217728blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekeyinafter134217728blocks debug1: pubkey_prepare: ssh_get_authentication_socket: No suchfileor directory debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_rsa RSA SHA256:90nUQDrAT7CLA72pV710fQxoPq4Jp2wmm03u/2c3X0 debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_dsa debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_ecdsa debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_ecdsa_sk debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_ed25519 debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_ed25519_sk debug1: Will attempt key: C:\\Users\\XeonYu/.ssh/id_xmss debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algsssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dssdebug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: C:\\Users\\XeonYu/.ssh/id_rsa RSA SHA256:90nUQDrAT7CLA72pV710fQxoPq4Jp2wmm03u/2c3X0 debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_dsa debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_ecdsa debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_ecdsa_sk debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_ed25519 debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_ed25519_sk debug1: Trying private key: C:\\Users\\XeonYu/.ssh/id_xmss debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password gitgithub.coms password: debug1: Authentications that can continue: publickey,password,keyboard-interactive Permission denied, please try again. gitgithub.coms password: debug1: Authentications that can continue: publickey,password,keyboard-interactive Permission denied, please try again. gitgithub.coms password: debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Nomoreauthentication methods to try. gitgithub.com: Permission denied(publickey,password,keyboard-interactive).说实话也没看出来哪里有问题。后来继续翻github文档看到了这个https://docs.github.com/cn/authentication/troubleshooting-ssh/using-ssh-over-the-https-port于是尝试执行了一下ssh-T-p443gitssh.github.com居然就成功了… 看来是所谓的防火墙问题吧按照文档提示在config文件中添加以下内容,没有config的话自己新建一个(就在你的.ssh文件夹内)把后缀名删掉即可。Host github.com Hostname ssh.github.com Port443Usergit然后再次运行这样就ok了真的是坑啊…如果你觉得本文对你有帮助麻烦动动手指顶一下可以帮助到更多的开发者如果文中有什么错误的地方还望指正转载请注明转自喻志强的博客 谢谢

关于恒美微站

恒美微站专注于为个体商户、工作室提供极简自助建站服务,让每个人都能轻松拥有专业网站。

快速链接

  • 关于我们
  • 建站服务
  • 主题模板
  • 案例展示
  • 资讯中心

服务项目

  • 可视化建站
  • 拖拽编辑
  • 主题定制
  • SEO 优化
  • 网站托管

联系方式

  • 📍 地址:北京市朝阳区建国路 88 号
  • 📞 电话:400-888-8888
  • ✉️ 邮箱:info@hmyw.cn
  • 🕐 时间:周一至周日 9:00-18:00

© 2024 恒美微站 hmyw.cn 版权所有 | 京 ICP 备 12345678 号