【问题标题】:Why am I not able to release my gem to github?为什么我无法将我的 gem 发布到 github?
【发布时间】:2011-08-16 15:27:24
【问题描述】:

我正在使用珠宝商发布宝石。我正在将 gem 发布到 github,这正在发生:

$ sudo rake release
Password:
(in /Users/***/code/testgem)
Pushing master to origin
rake aborted!
git push "origin" "master"  2>&1:Permission denied (publickey).
fatal: The remote end hung up unexpectedly

我已验证我的 SSH 密钥已正确连接到 github:

$ ssh -vT git@github.com
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
[lots of stuff]

Hi *****! You've successfully authenticated, but GitHub does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2384, received 2888 bytes, in 0.1 seconds
Bytes per second: sent 37829.8, received 45827.4
debug1: Exit status 1

【问题讨论】:

    标签: git github gem


    【解决方案1】:

    我在完成输入问题之前解决了这个问题:)

    “rake release”不适用于 sudo。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-11
      • 2022-12-25
      • 1970-01-01
      • 2017-07-13
      • 2020-12-26
      • 2012-04-15
      • 2012-06-30
      • 1970-01-01
      相关资源
      最近更新 更多