【问题标题】:SSH Fingerprint not authorized on Heroku after git restoregit restore 后 SSH 指纹未在 Heroku 上授权
【发布时间】:2013-05-19 06:08:11
【问题描述】:

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

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

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

Your key with fingerprint .... is not authorized to access... myapp. The remote end hung up unexpectedly. HEROKU, GIT CLONE

Why is my key w/ fingerprint not authorized when I try to push latest changes to Heroku?

Cannot push to Heroku because key fingerprint

当我运行 ssh -Tv git@heroku.com 时,终端输出以下内容:

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 type -1
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_dsa 类型 -1
debug1:身份文件 /Users/anthonyfrancavilla/.ssh/id_dsa-cert type -1
debug1:远程协议版本 2.0,远程软件版本 Twisted
debug1:不匹配:Twisted
debug1:为协议 2.0 启用兼容模式
debug1:本地版本字符串 SSH-2.0-OpenSSH_5.9
调试 1:已发送 SSH2_MSG_KEXINIT
调试 1:收到 SSH2_MSG_KEXINIT
debug1: kex: server->client aes128-ctr hmac-md5 none
调试1: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:服务器不允许漫游
调试 1:已发送 SSH2_MSG_SERVICE_REQUEST
调试 1:收到 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) 的身份验证。
调试 1:通道 0:新的 [客户端会话]
debug1:进入交互式会话。
debug1:发送环境。
debug1:发送 env LANG = en_US.UTF-8
通道 0 上的 shell 请求失败

【问题讨论】:

    标签: macos git heroku ssh


    【解决方案1】:

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

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

    【讨论】:

    • 什么是正确的? [远程“heroku”] url = https : //git.heroku.com/.git/ ? (我在url中放了一些空格,所以显示正确)
    • @razor - 我将我的遥控器从 git@ 更新为您建议的格式,一切都开始工作了。我认为你一针见血
    猜你喜欢
    • 2012-12-19
    • 2011-02-02
    • 2021-03-23
    • 2020-08-30
    • 2020-10-06
    • 2012-08-02
    • 1970-01-01
    • 2018-11-18
    • 1970-01-01
    相关资源
    最近更新 更多