HTTP/2 301
content-length: 0
location: https://docs.github.com/en/articles/connecting-to-github-with-ssh
HTTP/2 301
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data:;script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
location: /en/authentication/connecting-to-github-with-ssh
content-type: text/plain; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: 92F3:289DE8:25AB16:2C5812:68760815
accept-ranges: bytes
age: 0
date: Tue, 15 Jul 2025 07:50:16 GMT
via: 1.1 varnish
x-served-by: cache-bom4748-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1752565816.392314,VS0,VE301
vary: Accept
strict-transport-security: max-age=31557600
content-length: 82
HTTP/2 200
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data:;script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
x-powered-by: Next.js
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: 37A0:B78B1:284237:2EF95A:68760839
content-encoding: gzip
accept-ranges: bytes
age: 1
date: Tue, 15 Jul 2025 07:50:19 GMT
via: 1.1 varnish
x-served-by: cache-bom4748-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1752565817.710037,VS0,VE2500
vary: Accept-Encoding
strict-transport-security: max-age=31557600
content-length: 25068
Connecting to GitHub with SSH - GitHub Docs Skip to main content Secure your account with 2FA Authenticate with a passkey Troubleshoot verification
Connecting to GitHub with SSH You can connect to GitHub using the Secure Shell Protocol (SSH), which provides a secure channel over an unsecured network.
Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username and personal access token at each visit. You can also use an SSH key to sign commits.
To simplify deploying to a server, you can set up SSH agent forwarding to securely use local SSH keys.
Learn different ways to manage SSH keys on your servers when you automate deployment scripts and which way is best for you.
Before you generate an SSH key, you can check to see if you have any existing SSH keys.
After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.
To configure your account on GitHub.com to use your new (or existing) SSH key, you'll also need to add the key to your account.
After you've set up your SSH key and added it to GitHub, you can test your connection.
You can secure your SSH keys and configure an authentication agent so that you won't have to reenter your passphrase every time you use your SSH keys.
Help and support Ask Copilot your question. Ask Copilot