Skip to main content
GitHub Docs
All products
Authentication
Account security
Authentication to GitHub
Create a strong password
Update access credentials
Create a PAT
Reviewing your SSH keys
Deploy keys
Authorizing OAuth Apps
Authorizing GitHub Apps
Authorized integrations
Third-party applications
Review OAuth apps
Token expiration
Security log
Remove sensitive data
About anonymized URLs
GitHub's IP addresses
SSH key fingerprints
Sudo mode
Unauthorized access
Secure your account with 2FA
About 2FA
Configure 2FA
Configure 2FA recovery
Access GitHub with 2FA
Recover an account with 2FA
Change 2FA delivery method
Countries supporting SMS
Disable 2FA
Authenticate with SAML
SAML single sign-on
SSH Key with SAML
PAT with SAML
Active SAML sessions
Connect with SSH
About SSH
Check for existing SSH key
Generate new SSH key
Add a new SSH key
Test your SSH connection
SSH key passphrases
Troubleshooting SSH
Use SSH over HTTPS port
Recover SSH key passphrase
Deleted or missing SSH keys
Permission denied (publickey)
Error: Bad file number
Error: Key already in use
Permission denied other-user
Permission denied other-repo
Agent failure to sign
ssh-add: illegal option -- K
SSL certificate problem
Error: Unknown key type
SSH key audit
Verify commit signatures
Commit signature verification
Displaying verification for all commits
Existing GPG keys
Generating a new GPG key
Add a new GPG key
Tell Git your signing key
Associate email with GPG key
Signing commits
Signing tags
Troubleshoot verification
Check verification status
Update expired GPG key
Use verified email in GPG key
Authentication
/
Connect with SSH
Enterprise Cloud
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
All Enterprise Server releases
About versions
English
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Sign up
Search GitHub Docs
GitHub Docs
Authentication
/
Connect with SSH
Authentication
Get started
Account and profile
Authentication
Repositories
GitHub
Enterprise administrators
Billing and payments
Site policy
Organizations
Code security
Pull requests
GitHub Issues
GitHub Actions
GitHub Codespaces
GitHub Packages
Search on GitHub
Developers
REST API
GraphQL API
GitHub CLI
GitHub Discussions
GitHub Sponsors
Building communities
GitHub Pages
Education
GitHub Desktop
GitHub Support
Atom
Electron
CodeQL
npm
Enterprise Cloud
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
GitHub AE
All Enterprise Server releases
About versions
English
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Sign up
Search GitHub Docs
Connecting to GitHub with SSH
You can connect to GitHub Enterprise Cloud using the Secure Shell Protocol (SSH), which provides a secure channel over an unsecured network.
About SSH
Checking for existing SSH keys
Generating a new SSH key and adding it to the ssh-agent
Adding a new SSH key to your GitHub account
Testing your SSH connection
Working with SSH key passphrases