Authenticate with SSH keys to many repositories | Git tutorial
Mihai Code 200
The tutorial shows how to authenticate to git repositories with ssh private and public keys. You will see:
- how to clone from gihub and bitbucket using ssh protocol
- how to push to gihub and bitbucket using ssh protocol
- how to create private and public ssh keys
- how to add a public key to github
- how to add a public key to bitbucket
- how to configure git to use a private key for authentication
- how to configure git to use a different private keys for each repository
Also see: • Using multiple github accounts with ssh keys (https://gist.github.com/oanhnn/80a89405ab9023894df7) • [1] Documentation for config file (https://www.ssh.com/academy/ssh/config)
Chapters: 00:00 Theory 03:24 Create repositories 04:39 Create ssh keys 06:46 Add public key to github 07:19 Clone from github (wrong) 08:06 Create .ssh/config file 09:12 Clone from github (correct) 09:50 Add public key to bitbucket-1 10:36 Clone from bitbucket-1 (wrong) 10:55 Clone from bitbucket-1 (correct) 11:35 Add public key to bitbucket-2 12:04 Clone from bitbucket-2 (wrong) 13:27 Clone from bitbucket-2 (correct) 14:13 Clone from all repositories (correct) 15:06 Push to repositories 17:02 Ending
Special thanks to: • kdenlive • obs • gimp • draw.io
284088662 Bytes