|
1 | 1 | title: Activate SSH key (RSA private key) |
2 | | -summary: Setup the SSH Key to use with the current workflow |
| 2 | +summary: Add your SSH key to the build machine to access private repositories |
3 | 3 | description: |- |
4 | | - This Step makes sure Bitrise has access to your repository and thus able to clone your code to our virtual machines. The Step saves the provided private key of your SSH keypair to a file and then loads it into the user's ssh-agent with `ssh-add`. |
| 4 | + This Step makes sure Bitrise has access to your repository when cloning SSH URLs. The Step saves the provided private key of your SSH keypair to a file and then loads it into the SSH agent. |
5 | 5 |
|
6 | 6 | ### Configuring the Step |
7 | 7 |
|
8 | | - By default, you do not have to change anything about the Step's configuration. All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways. |
| 8 | + By default, you do not have to change anything about the Step's configuration. |
| 9 | +
|
| 10 | + The step downloads the SSH key defined in your App Settings, so most of the time it's the only thing you need to configure ([more info](https://devcenter.bitrise.io/en/connectivity/configuring-ssh-keys). |
| 11 | +
|
| 12 | + All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways. |
9 | 13 |
|
10 | 14 | - Automatically during the [app creation process](https://devcenter.bitrise.io/getting-started/adding-a-new-app/#setting-up-ssh-keys). |
11 | 15 | - Manually during the app creation process or at any other time. You [generate your own SSH keys](https://devcenter.bitrise.io/faq/how-to-generate-ssh-keypair/) and register them on Bitrise and at your Git provider. The SSH key should not have a passphrase! |
12 | 16 |
|
13 | | - Optionally, you can save the private key on the virtual machine. If a key already exists on the path you specified in the **(Optional) path to save the private key** input, it will be overwritten. |
| 17 | + Note: if you configure to use HTTPS instead of SSH git access, you don't need to use this Step. |
14 | 18 |
|
15 | 19 | ### Troubleshooting |
16 | 20 |
|
@@ -93,10 +97,8 @@ inputs: |
93 | 97 | outputs: |
94 | 98 | - SSH_AUTH_SOCK: |
95 | 99 | opts: |
96 | | - title: SSH Auth Socket info, in case the ssh-agent was started by this step |
| 100 | + title: SSH agent socket path |
97 | 101 | description: |- |
98 | | - If the `is_should_start_new_agent` option is enabled, and no accessible |
99 | | - ssh-agent is found, the step will start a new ssh-agent. |
| 102 | + If the `is_should_start_new_agent` option is enabled, and no accessible ssh-agent is found, the step will start a new ssh-agent. |
100 | 103 |
|
101 | | - This output environment variable will contain the path of the |
102 | | - SSH Auth Socket, which can be used to access the started ssh-agent. |
| 104 | + This output contains the path of the socket created by ssh-agent, which can be used to access the started ssh-agent ([learn more](https://www.man7.org/linux/man-pages/man1/ssh-agent.1.html)) |
0 commit comments