Closed trappedinspacetime closed 1 month ago
I don't think this is a problem with the repo, it's either a problem with github or your local ssh setup.
Use this command instead:
git clone --recursive git@github.com:balisujohn/tortoise.cpp.git
@balisujohn
git clone --recursive git@github.com:balisujohn/tortoise.cpp.git
Cloning into 'tortoise.cpp'...
The authenticity of host 'github.com (140.82.121.3)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Maybe useful for troubleshooting
https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey
I had the same issue too and I had to setup my ssh public keys and stuff to fix it @trappedinspacetime. I didn't have this issue with other repos @balisujohn as far as I can remember but perhaps you have a more secure setting or something?
The reason this happens is because the ssh url is used. https://github.com/balisujohn/tortoise.cpp/blob/a7d8fae9bd0782bc9d58b1bac712815967403778/.gitmodules#L1-L3 Which requires to have an ssh key installed and setup with an github account. So without modifying the file upon cloning, you wont be able to.
It is usually best practice to use https for defaults, since it can be read without an account/needing identification.
I'll change to https.
Alright, the submodule is changed to https, and so is the recommended cloning command. This should work with or without a local SSH setup:
git clone --recursive https://github.com/balisujohn/tortoise.cpp.git
@trappedinspacetime Let me know if this fixes things for you; if I don't hear back in a little while, I'll assume it's fixed and close the issue.
First of all, thank you for developing this project. I wanted to play with it but cloning fails: