title: Git submodules and ssh access
body: <p>I have some trouble with a git repository that contains several submodules.</p>
  
  <p>The super git repository was constructed with the commands</p>
  
  <pre><code>mkdir projectname
  cd projectname
  git init
  git submodule add ssh://myusername@server/pathtorepos
  </code></pre>
  
  <p>When a different user ("otheruser") then clones the super repository everything seems to work out. But when it is time to get access to the submodule </p>
  
  <pre><code>git submodule init
  git submodule update
  </code></pre>
  
  <p>git tries to clone the submodule using "myusername" instead of "otheruser".</p>
  
  <p>How to solve this problem?</p>