Search code examples
clonegitpython

Git repository cloning with GitPython - repository not found Authentication Failed


I am trying to clone private repository using Python. I am using Git Python package to clone the repository but I am getting an error:

Error : GitCommandError: 'git clone -v https://github.mit.edu/mitx/content-mit-1690rgit edxcourse' returned exit status 128: Cloning into 'edxcourse'... remote Repository not found. fatal : Authentication failed for 'https://github.mit.edu/mitx/content-mit-1690.r.git/'

However I am a member of this repository and I have access to the repository.


Solution

  • The repository which I was trying to Clone is a secured repo. So I need to establish a secure ssh authentication connection. and then it worked for me.