![]() To set up the ssh authentication, you must generate an rsa key pair (private and public) on your machine. You are just setting up the git.exe (or git.sh) software to use the ssh protocol when you pull or push to git. You are not actually ‘ssh-ing’ into github. How to authenticate to remote git repo with ssh?įirst of all, don’t be confused with the word ssh when it comes to git. What this means is that you must authenticate to the remote git repo using rsa and ssh. However, it will work if your git repo is public but then, what’s the point of having a public npm package on a custom server like github if you can host it directly on npm ? Even if it does, it will says: Authentication failure (Trust me I tried) Note that the syntax must start with the protocol git+ssh, not https like just because npm cannot prompt you to enter with your git username and password. Npm install private repository must have a valid Package.json file and an index.js file) Npm (or Node Package Manager) allows you to install your own package using the following command: How to use private git repo as npm package ?
0 Comments
Leave a Reply. |