Git and GitHubLesson 20Free preview
GitHub Add SSH
This lesson is part of Git · All levels
Summary
To use SSH with GitHub, pair the key with the ssh-keygen, and then upload the public key to the GitHub account settings. Private keys should be kept on the computer and never shared. Then test the connection with ssh -T git to make sure authentication works.
Key points
- Ssh-keygen -t ed25519 -C "email" makes the modern key
- Private key (id_ed25519) is kept in a ~/.ssh and kept secret
- Public keys are uploaded to Settings > SSH keys on GitHub
- Ssh -T [email protected] testing authentication
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.