This new build feature runs an SSH agent with the selected uploaded SSH key during a build. When your build script runs an SSH client, it uses the SSH agent with the loaded key. You no longer need to manage SSH keys on the agent manually.
The first time you connect to a remote host, the SSH client asks if you want to add a remote host's fingerprint to the known hosts database at ~/.ssh/known_hosts. To avoid such prompts during a build, you need to configure the known hosts database beforehand. If you trust the hosts you are connecting to, you can disable known hosts checks:
- either for all connections by adding something like this in ~/.ssh/config:
Host * StrictHostKeyChecking no
- or for an individual command by running an ssh client with the
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=nooptions. You can find more information in the man pages for ssh, ssh-agent and ssh-add commands.
Server shutdown improvements