I would like to know what people would suggest as a good way to add a deployment key to a remote server, so that it may checkout a private git repo.
I've been trying to deploy an application with Capistrano but keep getting failures with the SSH keys I believe when attempting to checkout the repository the application is linked to.
I have tried Agent Forwarding but I think I might be better just adding a deployment key to each remote server and then adding this key to the repository.
How best would I go about doing this? I'm looking for a few simple commands to run off against each remote server.