title: Git host for submodules and continuous integration
body: <p>We have one server (debian) on which the git repositories are located. Also the same server is used for continuous integration.
  During the build step a git repository is cloned/updated with its submodules. The host of a submodule is subdomain.domain.tld. Note that this host is exactly this one server. The user running the the CI is bamboo. The host of the submodule is specified without a user such that when contacting the host through ssh it is automatically prefixed with the current user. This works perfectly for us developers because every developer has a user on this server.</p>
  
  <p>The problem is with the build server. When the git submodules are updated the build server tries to connect to bamboo@subdomain.domain.tld instead of bamboo@localhost. It can't connect because there is no ssh key available for bamboo@subdomain.domain.tld.</p>
  
  <p>For now I just uploaded a key using</p>
  
  <pre><code>ssh-copy-id -i /home/bamboo/.ssh/id_rsa.pub subdomain.domain.tld
  </code></pre>
  
  <p>But I believe it is weird/incorrect to upload a key for the same user only for a different URL. </p>
  
  <p>Is this solution correct/safe or is there a far easier solution to this problem?</p>