Using the SSH task in Bamboo

Still need help?

The Atlassian Community is here for you.

Ask the community

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. Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).
  2. Click the name of an existing SSH task, or click Add Task and then SSH Task to create a new task.

  3. Complete SSH task configuration settings.

    Starting from Bamboo version 6.3, you can choose shared credential as your authentication method. See Shared credentials.

  4. The shell command to execute on the remote host. You can only enter a single command here.

  5. Click Save.

Host fingerprint

You can determine the fingerprint for a host by running:

ssh-keygen -l -F <HOSTNAME>

The fingerprint is the part of the response shown in the screenshot below:

Last modified on Feb 1, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.