How can I run ‘git clone’ from script so it won’t prompt for my password?
Is there some way, like entering the password on the same line with git clone?
(I have my own git repository. Not github)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is about configuring passwordless ssh access to a server, if I understand correctly. Then you will only need to run your script on the machine and under the user that can access this server passwordlessly (possibly creating a specific limited ssh key for the use of this script).
You can google for passwordless ssh, look at this previous similar question, or look at how github advises its users to proceed, and adapt this to your server.