I've got a TeamCity server set up to checkout src from GitHub on the agents using "Default Private Key" and a config file in .ssh that looks like this:
Host git@github.com
IdentityFile ~/.ssh/id_rsa.shop
StrictHostKeyChecking no
Host github.com
IdentityFile ~/.ssh/id_rsa.shop
StrictHostKeyChecking no
and this works fine. Now i want to push from the agents. However when i do this the push command hangs due to user input:
The authenticity of host 'github.com (192.30.252.130' can't be established.
RSA key fingerprints is 'xxx....xxx'
Are you sure you want to continue (yes/no)
Warning: Permently added '' to known hosts.
Connection closed by 192.30.252.130
Fatal: The remote end hung up unexpectedly.
If i do this manually it still fails with permission denied no matter wether i type yes/no.
The "Default Private Key" has read/write permissions accoring to github, so im a bit lost. Only thing i have observed is that the github ip looks very local, but how can that be when the agent has just done a agent side checkout? Could this be a firewall?
Can anyone explain to me what im missing?