loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

enhancement: add additional command hints for PowerShell & CMD (#33548)

- resolving wrong signature calculations for SSH key verification

Fixed #22693

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit e3adb686bb2e6f1ae3adc83a74f40cf1f621c620)

authored by

jason19970210
wxiaoguang
Giteabot
and committed by
Gusted
344351b7 0ff2c114

+10 -1
+10 -1
templates/user/settings/keys_ssh.tmpl
··· 78 78 <input readonly="" value="{{$.TokenToSign}}"> 79 79 <div class="help"> 80 80 <p>{{ctx.Locale.Tr "settings.ssh_token_help"}}</p> 81 - <p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}</code></p> 81 + <p><code>echo -n '{{$.TokenToSign}}' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey</code></p> 82 + <details> 83 + <summary>Windows PowerShell</summary> 84 + <p><code>cmd /c "&lt;NUL set /p=`"{{$.TokenToSign}}`"| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey"</code></p> 85 + </details> 86 + <br> 87 + <details> 88 + <summary>Windows CMD</summary> 89 + <p><code>set /p={{$.TokenToSign}}| ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey</code></p> 90 + </details> 82 91 </div> 83 92 <br> 84 93 </div>