Check SSH Keys Management for SSH key upload notes.
TeamCity SSH Agent uses a native ssh agent from the OpenSSH included with Linux and Mac OS X, so the feature works out of the box for these OS's. For Windows, OpenSSH needs to be installed (for example, as a part of CygWin, MinGW or a part of Git distribution for Windows).
The SSH agent must be added to
$PATH on Unix-like OS's and to
%PATH% on Windows.
For each TeamCity build agent a separate ssh agent is started, so it is possible to use this feature if several build agents are installed on the same machine.
Disabling SSH host key checking
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
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.