{"meta":{"title":"使用 SSH 连接到GitHub","intro":"可以使用安全外壳协议（SSH）连接到GitHub，该协议通过不安全的网络提供安全通道。","product":"身份验证","breadcrumbs":[{"href":"/zh/authentication","title":"身份验证"},{"href":"/zh/authentication/connecting-to-github-with-ssh","title":"使用 SSH 进行连接"}],"documentType":"category"},"body":"# 使用 SSH 连接到GitHub\n\n可以使用安全外壳协议（SSH）连接到GitHub，该协议通过不安全的网络提供安全通道。\n\n## Links\n\n### Connect to GitHub with SSH\n\n* [关于 SSH](/zh/authentication/connecting-to-github-with-ssh/about-ssh)\n\n  使用 SSH 协议可以连接远程服务器和服务并向它们验证。 利用 SSH 密钥可以连接到 GitHub，而无需在每次访问时都提供用户名和 personal access token。 还可以使用 SSH 密钥对提交进行签名。\n\n* [检查现有 SSH 密钥](/zh/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)\n\n  在生成 SSH 密钥之前，您可以检查是否有任何现有的 SSH 密钥。\n\n* [生成新的 SSH 密钥并将其添加到 ssh-agent](/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)\n\n  检查现有 SSH 密钥后，您可以生成新 SSH 密钥以用于身份验证，然后将其添加到 ssh-agent。\n\n* [将新的 SSH 密钥添加到GitHub帐户](/zh/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)\n\n  若要在 github.com 上配置帐户以使用新的（或现有）SSH 密钥，还需要将密钥添加到帐户。\n\n* [测试 SSH 连接](/zh/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection)\n\n  设置 SSH 密钥并将其添加到 GitHub 后，可以测试连接。"}