title: How to git clone via ssh without having to type in a password?
body: <p>I am using a git repo over ssh but the ssh server is only configured for username / password authentication there is <strong>no way</strong> for me to configure authentication with this server using certificates.</p>
  
  <p>So when I do a clone operation such as <code>ssh://user@host/git/demo.git</code> git asks me for a password to clone the repo. </p>
  
  <p>I want to avoid having to type the password so I tried executing the following command based on another StackOverflow question on how to avoid having to type the password with https </p>
  
  <pre><code>git config --global credential.helper "cache --timeout=86400"
  </code></pre>
  
  <p>However the password I type is not getting cached. </p>
  
  <p>I have to merge 20 different git repos into one big git repo and I want to write a shell script to do this so I don't want to have to keep typing my password. </p>
  
  <p>Is there a way to pass the password to git from within a bash shell script? I am using git 1.8.5.1 on CentOS 6.5</p>