I am trying to set up team city with git. I have team city server on 1 machine a and team city agent on 2. Also we have vpn enabled on the agent machine, that allows get access to stash server. I am using default private key method for authorization. And I get error like this:
Test connection failed in ---. List remote refs failed: com.jcraft.jsch.JSchException: java.net.UnknownHostException:---.
Question: Do I need to set up vpn on the teamcity server or it is needed only on teamcity agent.