andy5995 Posted September 1, 2024 Report Share Posted September 1, 2024 I created a fork on the WFG gitea instance. I get an error when I try to clone: Quote $ git clone git@gitea.wildfiregames.com:andy5995/0ad.git 0ad.git Cloning into '0ad.git'... The authenticity of host 'gitea.wildfiregames.com (49.12.87.62)' can't be established. RSA key fingerprint is SHA256:Q/s+KzKeUtYONDN3UZJYnDtP6EY71feeLfRTSuP48hQ. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'gitea.wildfiregames.com' (RSA) to the list of known hosts. git@gitea.wildfiregames.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 1, 2024 Report Share Posted September 1, 2024 Did you add your ssh key to the settings ? 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 1, 2024 Author Report Share Posted September 1, 2024 No, I hadn't done that. Ok, I've generated a new key (the public key I usually use got rejected due to its length) with: ssh-keygen -t ed25519 -f ~/.ssh/wfg I added the pub key to my settings and verified it (created and added the signature) but I still have the same problem. Quote Link to comment Share on other sites More sharing options...
Dunedan Posted September 1, 2024 Report Share Posted September 1, 2024 You also need to ensure this new key is being used when interacting with our Gitea instance. Adding the following to your ~/.ssh/config should do the trick: Host gitea.wildfiregames.com IdentityFile ~/.ssh/wfg 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 1, 2024 Author Report Share Posted September 1, 2024 Thanks, it's working now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.