git 恢复后,Heroku 上的 SSH 指纹未授权

2024-02-12

几周前,我不得不从 github 恢复我的主分支,从那以后我一直收到一条错误,指出“您的指纹密钥......无权访问我的应用程序。”

我查看了此问题的先前答案,并尝试删除旧密钥对,创建一个新密钥对并上传。

我使用了以下帖子,但仍然遇到相同的错误:

您的带有指纹的密钥...无权访问... myapp。远端意外挂断。 Heroku、Git 克隆 https://stackoverflow.com/questions/11499481/your-key-with-fingerprint-is-not-authorized-to-access-myapp-the-remote

当我尝试将最新更改推送到 Heroku 时,为什么我的带指纹的密钥未获得授权? https://stackoverflow.com/questions/9049905/why-is-my-key-w-fingerprint-not-authorized-when-i-try-to-push-latest-changes-to

由于密钥指纹而无法推送到 Heroku https://stackoverflow.com/questions/8786564/cannot-push-to-heroku-because-key-fingerprint

当我跑步时ssh -Tv [email protected] /cdn-cgi/l/email-protection终端输出以下内容:

OpenSSH_5.9p1、OpenSSL 0.9.8r 2011 年 2 月 8 日
debug1:读取配置数据/Users/username/.ssh/config
debug1:读取配置数据/etc/ssh_config
debug1: /etc/ssh_config 第 20 行:应用 * 的选项
debug1:连接到 heroku.com [50.19.85.154] 端口 22。
debug1:连接已建立。
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_rsa 类型 1
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_rsa-cert 类型 -1
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_dsa 类型 -1
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_dsa-cert 类型 -1
debug1:远程协议版本2.0,远程软件版本Twisted
debug1:不匹配:扭曲
debug1:启用协议2.0的兼容模式
debug1:本地版本字符串SSH-2.0-OpenSSH_5.9
debug1:SSH2_MSG_KEXINIT 已发送
debug1:收到 SSH2_MSG_KEXINIT
debug1: kex: 服务器->客户端 aes128-ctr hmac-md5 无
debug1: kex: 客户端->服务器 aes128-ctr hmac-md5 无
debug1:发送 SSH2_MSG_KEXDH_INIT
debug1:期待 SSH2_MSG_KEXDH_REPLY
debug1:服务器主机密钥:RSA [rsa 密钥已编辑]
debug1:主机“heroku.com”已知并且与 RSA 主机密钥匹配。
debug1:在 /Users/anthonyfrancavilla/.ssh/known_hosts:1 中找到密钥
debug1:ssh_rsa_verify:签名正确
debug1:SSH2_MSG_NEWKEYS 已发送
debug1:期待 SSH2_MSG_NEWKEYS
debug1:收到 SSH2_MSG_NEWKEYS
debug1:服务器不允许漫游
debug1:已发送 SSH2_MSG_SERVICE_REQUEST
debug1:收到 SSH2_MSG_SERVICE_ACCEPT
debug1:可以继续的身份验证:publickey
debug1:下一个身份验证方法:publickey
debug1:提供 RSA 公钥:/Users/anthonyfrancavilla/.ssh/id_rsa_heroku
debug1:服务器接受密钥:pkalg ssh-rsa blen 279
debug1:身份验证成功(公钥)。
已通过 heroku.com 验证 ([50.19.85.154]:22)。
debug1:通道 0:新 [客户端会话]
debug1:进入交互会话。
debug1:发送环境。
debug1:发送环境 LANG = en_US.UTF-8
shell 请求在通道 0 上失败


我发现问题出在.git/config中

[remote "heroku"] 下的 url 不正确。纠正后我就能够重新连接。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

git 恢复后,Heroku 上的 SSH 指纹未授权 的相关文章

随机推荐