Skip to content

Commit 6fc5d2b

Browse files
rluetznerSysoev, Vladimir
authored and
Sysoev, Vladimir
committed
Replace pubkey with privkey in keys_ssh.tmpl (go-gitea#20112)
If a user wants to verify an SSH public key from their account they have to sign the randomly generated token with their private key. Prior to this change the example command prompted to sign the token with their public key instead. Signed-off-by: Robert Lützner <[email protected]>
1 parent 286d1ad commit 6fc5d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/user/settings/keys_ssh.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<input readonly="" value="{{$.TokenToSign}}">
7676
<div class="help">
7777
<p>{{$.i18n.Tr "settings.ssh_token_help"}}</p>
78-
<p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey" $.TokenToSign}}</code></p>
78+
<p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_privkey" $.TokenToSign}}</code></p>
7979
</div>
8080
<br>
8181
</div>

0 commit comments

Comments
 (0)