I get a strange failure on CodeBerg on my Aurora lap-top that I don’t get on my macbook.
After I upload the pubkey, I click the Verify button and then I get a screen with two code snippets I can use. The first is for verification using the private key file
After I paste the result into the Armored SSH signature field, I get the same error in both scenarios:
The provided SSH key, signature or token do not match or token is out-of-date.
I have not run into this problem before…. Is this familiar?
_General PSA_
Codeberg is awesome and they make security accessible to the masses. Please consider them if you are looking for a place to host your git repo and donating, even small amounts is a good contribution.
is the location of the private key the following ~/.ssh/id_codeberg and did you place into codeberg the public key ~/.ssh/id_codeberg.pub??
I just tried adding a new public key to my https://codeberg.org/ account and it was successfully added and I went through the verification part (using the echo command line option which then produced the '‘Signed Data’ output and copied it into the section needed to verify and completed without any issue.
I would run something like this to make sure the private and public keys match as well just in case(change the file names to what they are on your system):
Thanks for the suggestion. I didn’t know about the -lf options for the fingerprint and the -f option saves me a lot of typing.
The current file names and keys all match, so I created a new key pair with your instructions and got the same error.
I’m copying the key text from the terminal window into the browser form.
I wonder if there is something in the clipboard or the character encoding that might be mangled?
Download and use a different terminal (not the default one that comes with Aurora laptop, I use Ghostty)
Download and use a clipboard manager like Klipper for KDE to see if the data that’s being copied is wrong
Another thing to take note. I noticed when I did another test SSH key on codeberg.org that I messed up on my test SSH key verification and when I went to the verification again, I got a NEW token to use to do the verification. I didn’t notice that and failed again. I noticed it on the third attempt that I needed to do the following:
use the new token
change the name of the private key from the example commands they gave to make it work
I was able to do the second SSH key verification with success by doing the following changes above (I also used the xsel command with mine as well to copy/paste that key back into the verification process just fine)
This is an awesome suggestion #TIL xsel is a thing, so I brew install xsel and your instructions worked like a charm….but the %$@* error happened again.
I didn’t find GhostTTY in the Bazaar flathub browser, so I install an emulator called Contour , refreshed the token, ran the echo… command again, pasted the text into the form…
and it worked like a charm!
So there may be something quite weird with the terminal emulator but it’s way past my bedtime…