Reputation: 2730
I am trying to install a private python package from a bitbucket repo with sshkeys by using following command
pip install git+ssh://[email protected]:username/package.git
but i am getting following error.
ssh: Could not resolve hostname bitbucket.org:pak-sign: Name or service not known fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. Command "git clone -q ssh://[email protected]:username/package.git /tmp/pip-7j4r53en-build" failed with error code 128 in None
but when i try to clone this repo ssh is working fine and i am able to clone it successfully. I am sure that my ssh-keys are correct and repository exists. I have tried various solutions but still not able to install it. Any help is appreciated.
Upvotes: 3
Views: 1243
Reputation: 5640
The [email protected]:owner/repo
format does not work when the git+ssh://
scheme is specified. (With git+ssh://
present, SSH will assume that the stuff behind the colon is a port number.) Instead, use a slash between bitbucket.org
and the rest of the path:
git+ssh://[email protected]/username/package.git
Upvotes: 5
Reputation: 9297
Try changing your DNS as Google Public DNS IP addresses :
The Google Public DNS IP addresses (IPv4) are as follows:
8.8.8.8
8.8.4.4
The Google Public DNS IPv6 addresses are as follows:
2001:4860:4860::8888
2001:4860:4860::8844
Check the Documentation for more details : How to Change your DNS servers settings
Upvotes: 1