summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorRobert Lützner <robert.luetzner@pm.me>2022-06-24 10:11:13 +0000
committerGitHub <noreply@github.com>2022-06-24 12:11:13 +0200
commitafea63f4e5a4b7e3da03a7d5fc6590569976e7d3 (patch)
tree8a6476f5ad722db1003c4164825d6ae33238f5aa /templates/user
parent8575050ebab2e038882f7adce786502ff9ea3495 (diff)
downloadgitea-afea63f4e5a4b7e3da03a7d5fc6590569976e7d3.tar.gz
gitea-afea63f4e5a4b7e3da03a7d5fc6590569976e7d3.zip
Replace pubkey with privkey in keys_ssh.tmpl (#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 <robert.luetzner@pm.me>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/keys_ssh.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl
index 699905ebe2..ba62ac3cf4 100644
--- a/templates/user/settings/keys_ssh.tmpl
+++ b/templates/user/settings/keys_ssh.tmpl
@@ -75,7 +75,7 @@
<input readonly="" value="{{$.TokenToSign}}">
<div class="help">
<p>{{$.i18n.Tr "settings.ssh_token_help"}}</p>
- <p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey" $.TokenToSign}}</code></p>
+ <p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_privkey" $.TokenToSign}}</code></p>
</div>
<br>
</div>