Bamboo での SSH タスクの使用

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

You can use the Bamboo SSH task to execute a SSH command on a remote computer as part of a Bamboo job.

You can use the SSH task to do such things as:

  • Calling database migration scripts 
  • Starting and stopping services
  • Anything you can run on the command line on a remote machine

See Configuring a deployment task for an overview of Bamboo deployment tasks.

To configure an SSH task:

  1. ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
  2. Click the name of an existing SSH task, or click Add Task and then SSH Task to create a new task.
  3. Complete the following settings:
     

    タスクの説明タスクの目的を識別するのに役立ちます。
    このタスクを無効化オンまたはオフにすることで、選択的にこのタスクを実行します。
    ホストThe hostname or IP address of the remote server on which the SSH Command will be executed.
    接続時にリモート ホスト フィンガープリントを確認Enter the host fingerprint to be verified. See below for more details.
    ポートSSH 接続に使用されるリモート ホストのポート番号です。デフォルト値は 22 です。
    ユーザ名リモート ホストへの接続に使用するユーザー名です。
    認証タイプパスワードユーザー名に関連付けられたパスワードです。
    鍵(パスフレーズなし) – リモート ホストでの認証に使用する SSH 秘密鍵を参照します。
    鍵(パスフレーズあり) – リモート ホストでの認証に使用する SSH 秘密鍵を参照し、パスフレーズを提供します。
    SSH CommandThe shell command to execute on the remote host. You can only enter a single command here.
  4. Click Save.

ホスト フィンガープリント

以下のコマンドを実行して、ホストのフィンガープリントを判断することができます。

ssh-keygen -l -F <HOSTNAME>

以下のスクリーンショットに示すように、フィンガープリントはレスポンスの一部です。

最終更新日 2017 年 4 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.