Permission denied (publickey) when git clone illustris_python

Daniel Minyety
  • 1
  • 22 Jan '23

Hi Dylan,

I am attempting to install Illustris Python by copying and pasting the below code into my terminal, however it results in an error saying I do not have the correct access rights and that it could not read from the remote repository:

git clone git@github.com:illustristng/illustris_python.git
Cloning into 'illustris_python'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
cd illustris_python
pip install .2 [MilkyWay:~] lab:cd illustris_python
illustris_python: No such file or directory.

How would I go about fixing these and correctly installing Illustris Python?

Best Daniel

Dylan Nelson
  • 22 Jan '23

You are trying a git clone with a ssh url, which would require that you set up your ssh key with github first.

Simpler to just change that command to:

git clone https://github.com/illustristng/illustris_python.git
Daniel Minyety
  • 24 Jan '23

Hi Dylan,

Thank you, that worked.

  • Page 1 of 1