Reputation: 5391
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)
Upvotes: 2
Views: 737
Reputation: 11985
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.
Upvotes: 1