Skip to content

Commit 7d89118

Browse files
committed
enhancement: add additional command hints for PowerShell & CMD resolving wrong signature calculations
1 parent 72518a8 commit 7d89118

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/user/settings/keys_ssh.tmpl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,17 @@
7878
<input readonly="" value="{{$.TokenToSign}}">
7979
<div class="help">
8080
<p>{{ctx.Locale.Tr "settings.ssh_token_help"}}</p>
81+
<p>Linux & macOS</p>
8182
<p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}</code></p>
83+
<details>
84+
<summary>Windows PowerShell</summary>
85+
<p><code>{{printf "cmd /c \"<NUL set /p =`\"%s`\"| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey\"" $.TokenToSign}}</code></p>
86+
</details>
87+
<br>
88+
<details>
89+
<summary>Windows CMD</summary>
90+
<p><code>{{printf "set /p=%s| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}</code></p>
91+
</details>
8292
</div>
8393
<br>
8494
</div>

0 commit comments

Comments
 (0)