【问题标题】:Cloning repositories using mercurial eclipse not working on macos 10.8.2使用 mercurial eclipse 克隆存储库在 macos 10.8.2 上不起作用
【发布时间】:2012-10-29 06:46:13
【问题描述】:

我已将我的 mac os 10.7.4 更新为 10.8.2(osx-mountain-lion) 。更新 macos 后,我无法从 eclipse 克隆存储库。我收到以下错误。

我正在使用Mercurial-Eclipse-1.9.4

  hg -y clone --noupdate ssh://integ-build3//advent/hg/zohomailclient zohomailclient
remote: Permission denied, please try again.
remote: Permission denied, please try again.
remote: Permission denied (publickey,gssapi-with-mic,password).
abort: no suitable response from remote hg! 

我已经在我的 10.7.4 上放了 ssh-askpass。在我输入 ssh-askpass 后,它在 macos 10.7.4 上运行良好。但是,它不适用于 macos 10.8.2 。

当克隆密码提示没有通过 eclipse 提示 ssh cloning 时。它适用于 http 克隆。

【问题讨论】:

    标签: java eclipse macos osx-mountain-lion osx-leopard


    【解决方案1】:

    我认为问题在于升级后的环境中的 ssh 配置,而不是 Mercurial 或 MercurialEclipse。要将 MercurialEclipse 与 ssh 一起使用,需要配置非交互式 ssh 登录。您应该能够在不询问用户名/密码的情况下通过 ssh 进入该机器。

    【讨论】:

    • 您的解决方案将是密钥配对?我无法为所有 mercurial 存储库主机进行密钥配对。 macos上是否有任何配置更改会很好。
    • 我之前没有使用过 ssh-askpass,但这也应该可以。只要 mercurial/ssh 不在命令行上询问用户名和密码。
    【解决方案2】:

    据我了解,ssh-askpass 依赖于 X11,而 10.8 不附带 X11。也许安装XQuartz 会有所帮助?

    【讨论】:

      猜你喜欢
      • 2020-10-26
      • 2011-06-09
      • 2011-11-16
      • 2012-02-05
      • 1970-01-01
      • 2011-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多