{{.locale.Tr "settings.manage_ssh_keys"}}

{{.CsrfTokenHtml}}
{{.locale.Tr "settings.ssh_desc"}}
{{if .DisableSSH}}
{{.locale.Tr "settings.ssh_signonly"}}
{{end}} {{range $index, $key := .Keys}}
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}} {{$.locale.Tr "settings.ssh_key_verify"}} {{end}}
{{svg "octicon-key" 32}}
{{if .Verified}} {{svg "octicon-verified"}} {{$.locale.Tr "settings.ssh_key_verified"}} {{end}} {{.Name}}
{{.Fingerprint}}
{{$.locale.Tr "settings.add_on"}} {{template "shared/datetime/short" (dict "Datetime" .CreatedUnix.FormatLong "Fallback" .CreatedUnix.FormatShort)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{$.locale.Tr "settings.last_used"}} {{template "shared/datetime/short" (dict "Datetime" .UpdatedUnix.FormatLong "Fallback" .UpdatedUnix.FormatShort)}}{{else}}{{$.locale.Tr "settings.no_activity"}}{{end}}
{{if and (not .Verified) (eq $.VerifyingFingerprint .Fingerprint)}}

{{$.locale.Tr "settings.ssh_token_required"}}

{{$.CsrfTokenHtml}}

{{$.locale.Tr "settings.ssh_token_help"}}

{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_privkey" $.TokenToSign}}


{{$.locale.Tr "settings.cancel"}}
{{end}} {{end}}

{{.locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh" | Str2html}}