I am using a git repo over ssh but the ssh server is only configured for username / password authentication there is no way for me to configure authentication with this server using certificates.
So when I do a clone operation such as ssh://user@host/git/demo.git git asks me for a password to clone the repo.
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
git config --global credential.helper "cache --timeout=86400"
However the password I type is not getting cached.
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.
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
there is no way for me to configure authentication with this server using certificates.If this is also specifically referring to key auth, then (based on my experience withsshd) I believe you're out of luck, since it requires some sort of authentication on every connection.