{"meta":{"title":"已删除或缺少的 SSH 密钥","intro":"作为安全预防措施， GitHub 自动删除一年内未使用的 SSH 密钥。","product":"身份验证","breadcrumbs":[{"href":"/zh/authentication","title":"身份验证"},{"href":"/zh/authentication/troubleshooting-ssh","title":"SSH 故障排除"},{"href":"/zh/authentication/troubleshooting-ssh/deleted-or-missing-ssh-keys","title":"已删除或缺少的 SSH 密钥"}],"documentType":"article"},"body":"# 已删除或缺少的 SSH 密钥\n\n作为安全预防措施， GitHub 自动删除一年内未使用的 SSH 密钥。\n\nGitHub 自动删除非活动 SSH 密钥，以帮助保护帐户安全，例如某人离开作业或丢失计算机后。\n\n可以通过查看帐户的安全日志，检查是否在一年内未使用过 SSH 密钥。 有关详细信息，请参阅“[审查您的安全日志](/zh/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log)”。\n\n在删除非活动 SSH 密钥后，必须生成一个新的 SSH 密钥并将其与帐户关联。 有关详细信息，请参阅 [生成新的 SSH 密钥并将其添加到 ssh-agent](/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) 和 [将新的 SSH 密钥添加到GitHub帐户](/zh/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)。"}