title: make git clone with sudo
body: <p>when I make git clone with ssh from a user prompt it works properly.</p>
  
  <pre><code>git clone ssh://URL.com/soft.git soft_git
  </code></pre>
  
  <p>the ssh key  <code>id_rsa</code> and <code>id_rsa.pub</code> are under <code>/home/user/.ssh</code></p>
  
  <p>my purpose is the execute git with <code>sudo</code> but I got the following error</p>
  
  <pre><code>Cloning into '/home/user/git/soft'...
  Permission denied (publickey,keyboard-interactive).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>I create a folder <code>/root/.ssh</code> and I copy the ssh keys into it but I got the same error</p>
  
  <p>how to execute git with sudo properly.</p>