【问题标题】:How to debug CircleCI VM via SSH?如何通过 SSH 调试 CircleCI VM?
【发布时间】:2016-06-22 04:28:07
【问题描述】:

我正在尝试通过 SSH 远程调试 CircleCI 虚拟机,使用他们的“使用 SSH 重建”选项。当我这样做时,它会打印以下消息:

You can now SSH into this VM if your SSH public key is added:
    $ ssh -p [port] ubuntu@[IP address]
Use the same SSH public key that you use for GitHub.  If you have not added your public keys to this build and you would like to SSH to it, you can add them by clicking the "SSH to this build" button in the "Debug via SSH" tab.

不幸的是,页面上似乎没有“SSH to this build”按钮,所以我不得不这样做。

我如何获得这个 SSH 密钥?如何将其添加到构建中?一旦我这样做了,然后呢?它们是指我在 GitHub 上的个人 SSH 公钥,还是我所在组织的公钥?

【问题讨论】:

    标签: ssh continuous-integration circleci


    【解决方案1】:

    您需要复制并粘贴 CircleCI 仪表板在该构建页面顶部为您提供的 SSH 命令。

    这将被复制并粘贴到 Linux 或 OS X 机器上的终端中,在 Windows 机器上使用 Putty,或在 Windows 10 中的 Windows 上使用 Bash。

    使用的 SSH 密钥直接从 GitHub 中提取。如果您已经可以从本地计算机推送到 GitHub 存储库,那么您就可以开始了。 CircleCI 容器将使用相同的密钥。只需运行 SSH 命令即可。

    -里卡多 开发人员布道师,CircleCI

    【讨论】:

    • 如何取消SSH调试而无需等待30分钟?
    • 您可以从网站的构建页面直接取消构建。它们将是顶部附近的按钮/链接。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-09
    • 1970-01-01
    • 2017-11-24
    • 1970-01-01
    相关资源
    最近更新 更多