4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CircleCI2.0にSSH

Posted at

やりたいこと

  • CircleCIのコンテナにSSHログインしてデバックしたい

準備

GithubにSSHキーを登録

以下などを参考に設定してください

テストをRerun

一度失敗すると右上にRerun Job with SSHのボタンがでるので押す

CircleCI.png

Rerunも失敗すると、

You can now SSH into this box if your SSH public key is added:
    $ ssh -p 64537 35.172.20.99

Use the same SSH public key that you use for your VCS-provider (e.g., GitHub).

RSA key fingerprint of the host is
  SHA256:Ckcz2qtZrgzUQL9GbFDK+VTsUs2fFM4P7xxxxxxxxxxx
  MD5:4f:49:ca:ba:fd:13:d5:c2:25:e4:6a:01:xx:xx:xx:xx

This box will stay up for 2h0m0s, or until 10m0s passes without an active SSH session.

と表示が出るので、IPアドレスとポート番号を確認し、Githubに登録したSSHキーを使って

$ ssh -i .ssh/id_rsa -p 64543 ubuntu@35.172.20.99
circleci@8af0c1c68e5a:~$

でコンテナにログインできます。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?