When attempting to clone a repository at git.overlays.gentoo.org using ssh+git I'm getting an access denied error. At the moment I only need read access but I assume that if I ever wanted to push back changes I'd need to use ssh+git. Example command line: git clone git+ssh://rich0@git.overlays.gentoo.org/proj/sandbox.git Result: (/etc/issue) Permission denied (publickey). fatal: The remote end hung up unexpectedly Let me know if I'm doing something wrong... I have no issues with ssh into dev.gentoo.org. Reproducible: Always
Some repos are "all devs" - others require explicit access.
Even if you use git:// to clone the repo, you can change the url to git+ssh later without having to re-clone it, plus you can specify in .git/config to have different pull from push urls. Anyway, the url you are using is wrong, it should be git+ssh://git@git.overlays.gentoo.org/proj/sandbox.git and it should work now (for pull access only)
Thanks - I'd assumed that you'd substitute your own username - I didn't realize it would work with various different public keys on a single username.