In this video I show how to configure GitHub (GitLab, BitBucket, etc.) SSH correctly: 1. Create a key-value pair using the ED25519 algorithm, that is done with the command `ssh-keygen -t ed25519`. The defaults are ok. 2. But! Make sure that you add a passphrase! This is important 3. Add your public key to GitHub via settings. 4. Configure your SSH Agent. This can be tricky in itself, so I might make a full video about this one if there is enough interest. 5. Add your decrypted private key to the agent with `ssh-add ~/.ssh/id_ed25519`. These steps work exactly the same for GitLab, Gerrit, BitBucket and many others. There is absolutely no difference. A good way to test if things are working correctly is to try to `git clone` a random repository SSH URL. GitHub will say: Permission denied (publickey). fatal: could not read from remote repository. You could use HTTPS for cloning, but for proper authentication only SSH works. 00:00 intro 00:17 Git clone with SSH: permission denied 00:34 Private and public key pair 01:00 Generate a key pair with ssh-keygen 01:44 Use the ED 25519 algorithm 02:08 Add public key to GitHub (GitLab, BitBucket) 02:38 But you have to type the passphrase every time! 03:01 Use the SSH Agent 04:41 ssh-add to add keys to agent 05:08 Simplify everything with SSH configuration file 06:31 Going beyond the basics 06:53 Contribute by subscribing











