Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip, Git and ssh key with custom path

Tags:

git

python

pip

ssh

Based on the following question (Is it possible to use pip to install a package from a private github repository?), I try to connect to pip a git repository via ssh.

My key is in a custom path. I try to import it without success, always ending with

Command /usr/bin/git clone -q ssh://[email protected]:<user>/<repo>.git /tmp/pip-rYrupA-build failed with error code 128 in None

I tried to log with

pip install git+ssh://[email protected]:<user>/<repo>.git -i /path/to/id_rsa 

without success. Thanks!

like image 708
Raphael Avatar asked Sep 28 '22 22:09

Raphael


1 Answers

Ok, found the answer: Bitbuckets gives a ssh link to the repository formatted as

[email protected]:<user>/<repo>.git

The problem is due to the ":", which should be replaced by "/":

[email protected]/<user>/<repo>.git
like image 194
Raphael Avatar answered Oct 07 '22 20:10

Raphael