From bd26fdac3690962d25fc223c35edaa07395162ea Mon Sep 17 00:00:00 2001 From: Melissa Geels Date: Sun, 16 Nov 2025 15:00:16 +0100 Subject: [PATCH] fix: SSH key verification instructions for Windows cmd (#10106) Resolves #10102 Adjust the SSH key verification instructions for Windows CMD to make it work. ## Test 1. Use Windows. 2. Go to the user settings. 3. Go to "SSH / GPG keys" 4. Add a SSH key. 5. Click on the "Verify" button for the SSH key. 6. Use the Windows CMD command to verify. 7. Verify that this generates a signature that is accepted by Forgejo. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10106 Reviewed-by: Gusted Co-authored-by: Melissa Geels Co-committed-by: Melissa Geels --- templates/user/settings/keys_ssh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index 38a2b98353..d4931d62c1 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -90,7 +90,7 @@
Windows CMD -
set /p={{$.TokenToSign}}| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey
+
<NUL set /p="{{$.TokenToSign}}"| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey