Git checkout error for public repo

- [1 min read]

One of those djissis duh moments - trying to check out a public git repo, but failing due to authentication …

git clone
Cloning into 'Scripts'...
Warning: Permanently added the RSA host key for IP address '' 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.

So I checked my ssh setup / keys, but nothing in there looks dodgy:

ls ~/ssh/

So it ended up being ssh vs https cloning. SSH checkout is always authenticated.

git clone
Cloning into 'Scripts'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9 (delta 0), reused 0 (delta 0), pack-reused 6
Unpacking objects: 100% (9/9), done.
Checking connectivity... done.

comments powered by Disqus