Improve the prompt for "ssh-keygen sign" (#28509) (#28510)

Backport #28509 by wxiaoguang

Close #28505

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 4462628a26)
This commit is contained in:
Giteabot 2023-12-18 23:25:52 +08:00 committed by Earl Warren
parent cd5a0ec1c8
commit 2878d07926
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -78,7 +78,7 @@
<input readonly="" value="{{$.TokenToSign}}"> <input readonly="" value="{{$.TokenToSign}}">
<div class="help"> <div class="help">
<p>{{ctx.Locale.Tr "settings.ssh_token_help"}}</p> <p>{{ctx.Locale.Tr "settings.ssh_token_help"}}</p>
<p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_privkey" $.TokenToSign}}</code></p> <p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}</code></p>
</div> </div>
<br> <br>
</div> </div>