Using the SSH task in Bamboo
To configure an SSH task:
- Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).
- Click the name of an existing SSH task, or click Add Task and then SSH Task to create a new task.
Complete the following settings:
Helps you identify the purpose of the task.
Disable this task
Check, or clear, to selectively run this task.
The hostname or IP address of the remote server on which the SSH Command will be executed.
Verify remote host fingerprint on connect
Enter the host fingerprint to be verified. See below for more details.
The port number of the remote host that is used for the SSH connection. The default value is 22.
The username to use to connect to the remote host.
Password – the password associated with Username.
Key without passphrase – browse to the SSH private key with which to authenticate with the remote host.
Key with passphrase – browse to the SSH private key, and supply the passphrase, to use to authenticate with the remote host.
The shell command to execute on the remote host. You can only enter a single command here.
- Click Save.
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: