Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Permission denied (publickey). fatal: Could not read from remote repository. #23

Closed
mrtortong opened this issue Sep 8, 2016 · 5 comments

Comments

@mrtortong
Copy link

mrtortong commented Sep 8, 2016

Hi.

root@tong:/# git clone git@github.com:facebookresearch/deepmask.git $DEEPMASK
Cloning into '/desired/absolute/path/to/deepmask'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Please recommend.
mrtortong.

@tylin
Copy link

tylin commented Sep 8, 2016

It seems the problem might be using git under root:
http://stackoverflow.com/questions/15696190/permission-denied-when-cloning-git-repository
https://help.github.com/articles/error-permission-denied-publickey/

@mr1528
Copy link

mr1528 commented Apr 1, 2017

to mrtortong :
use this
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

then get your generated key ( start with ssh-rsa or other type )
go to your git user panel -> SSH & GPG Keys --> New SSH key -> paste your key ( fill title with any ) then press Add SSH key

Will Fix.

good luck.

@Gwennyphar
Copy link

Gwennyphar commented Dec 6, 2017

my solution was
Generate SSH key using ssh-keygen -t rsa -b 4096 -C "your_email@example.com".
Copy the output of cat id_rsa.pub
Paste the above copied outpur into your Github profile -> Settings -> SSH and GPG Keys -> Add new SSH key

@zazapeta
Copy link

zazapeta commented Feb 21, 2018

(For the sake of share) I did what @Gwennyphar said +

ssh-add -K ~/.ssh/<YOUR_GENERATED_RSA_FILE>

I found this article : https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent

Cheers 🍺

@ChristophKnopf
Copy link

When you're facing this little fellow Could not open a connection to your authentication agent.
Go here Start Agent for the bash (Stackoverflow)
I had to do as the ssh agent was not found but running!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants