title: Cloning github repo recursive using https instead of ssh
body: <p>There is a github repo A that has a submodule repo B. Both A &amp; B are public, so anyone can clone them with <code>git clone</code> or just download zip.</p>
  
  <p>In A's <code>.gitmodules</code> reference to B is specified via ssh connection string</p>
  
  <pre><code>url = git@github.com:PersonB/B.git
  </code></pre>
  
  <p>If I run <code>git clone A --recursive</code> from local machine it works fine, because my ssh keys are on github. However, I need this to run on a server, actually, multiple servers, and not by me. So there is no way that all these ssh keys are added to someone's github account. If I run <code>git clone A --recursive</code> from a server, I get the good old</p>
  
  <pre><code>Permission denied (publickey).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>First option here is to ask developer A to change <code>url</code> in <code>.gitmodules</code>, but, this is probably not the only such repo. Second option is to rewrite <code>.gitmodules</code> myself after shallow cloning and then do submodule update. Is there any nicer way?</p>