新闻详情

新闻详情

首页 / 资讯中心 / 详情

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

发布时间:2026/11/18 19:27:21来源:尧图网络
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了真的是坑啊…如果你觉得本文对你有帮助麻烦动动手指顶一下可以帮助到更多的开发者如果文中有什么错误的地方还望指正转载请注明转自喻志强的博客 谢谢
网站建设高端定制企业官网
RELATED

相关资讯

更多精彩内容,欢迎继续阅读

较早相关资讯

最新相关资讯

【外设】之大彩串口显示屏 2026/11/17 7:04:08

【外设】之大彩串口显示屏

大彩串口屏初步使用 1 .官网下载 STM32 屏幕 GUI 设计资料 http://www.gz-dc.com/category/typeid/4112 找到 STM32 Keil 工程,移植相关代码因项目而异进行移植,由于项目简单,本人只对用到的指令接口进行修改。 比如:注意事项&…

阅读更多 →
无法下载Windows系统iso文件 2026/11/18 14:20:46

无法下载Windows系统iso文件

当我遇到这个问题的时候,我打开了一个网站: 登录 然后我打算下载的时候: 突然那个官方的连接就可以下载了:

阅读更多 →
【清华代码熊】DeepSeek V4.1 Flash 后训练详解 2026/11/17 19:43:34

【清华代码熊】DeepSeek V4.1 Flash 后训练详解

📌 上期解析了 DeepSeek V4.1 Flash 模型架构改进,本期解析 DeepSeek V4.1 Flash 预训练/后训练技术: 🌟 预训练:45T 文本 多模态混合语料、直接训练 sparse attention(取消 DeepSeek V4 的 dense 冷启动&…

阅读更多 →
Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ... 2026/11/18 11:04:06

Shuffle-R1: Efficient RL framework for Multimodal Large Language Models via Data-centric Dynamic ...

文章主要内容和创新点 主要内容 本文聚焦于多模态大语言模型(MLLM)强化学习(RL)训练中的效率问题,提出了一个名为Shuffle-R1的框架。研究发现,当前RL训练存在两个关键缺陷: 优势值坍缩(Advantage Collapsing):批次中大多数优势值集中在零附近,导致有效梯度信号被淹…

阅读更多 →
PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction 2026/11/18 15:55:22

PRvL: Quantifying the Capabilities and Risks of Large Language Models for PII Redaction

一、文章主要内容总结 本文聚焦于利用大型语言模型(LLMs)实现个人身份信息(PII)脱敏的研究,旨在解决传统脱敏方法(如基于规则的系统、领域特定命名实体识别(NER)模型)泛化能力差、跨格式/跨语境适应性弱的问题。 研究通过全面评估多种LLM架构(包括密集型LLM(D-LLM…

阅读更多 →
LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model 2026/11/17 19:43:32

LLaVA-RE: Binary Image-Text Relevancy Evaluation with Multimodal Large Language Model

文章主要内容和创新点 主要内容 本文聚焦于二进制图像-文本相关性评估任务(判断图像与文本“相关”或“不相关”),针对该任务中文本格式多样、相关性定义随场景变化等挑战,提出了基于多模态大语言模型(MLLM)的解决方案LLaVA-RE。 模型设计:LLaVA-RE基于LLaVA 1.5架构,…

阅读更多 →

今日资讯

本周资讯

本月资讯

看完文章仍有疑问?

联系尧图顾问,获取一对一建站咨询

立即免费咨询 📞 400-888-8888
📞 ✉