Registering SSH Keys for GIT Authentication - Video Example

This video shows the quick process one needs to go through for setting up ssh keys to authenticate to a remote GIT host provider, in this case GitHub:

Normally source code is not something that we want anyone to contribute and edit - unless it’s open source. So how do we go about authenticating who is allowed to read and write to the code in a GIT repository?

One convenient means of accessing GIT is via ssh keys. For that you need to generate a public-private key pair.

This is the typical workflow using ssh-keygen which is part of the openssl command line distribution - command line distributions exist for all the major platforms - windows, linux and Mac OS X.

parallels@parallels-Parallels-Virtual-Platform:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/parallels/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/parallels/.ssh/id_rsa. Your public key has been saved in /home/parallels/.ssh/id_rsa.pub. The key fingerprint is: SHA256:qBFcPXg5kUnu7wVnTGKJ1oZTM+DAMD8WzYko9IN/+tQ parallels@parallels-Parallels-Virtual-Platform The key's randomart image is: +---[RSA 2048]----+ | .. o++B+B+ | | .+.++=%= + | | ..= +.Bo* . | | . + = + + | | o o S . + | | = . . + | | o . E . . | | o . . | | . . | +----[SHA256]-----+

You then typically need to take the contents of .ssh/id_rsa.pub (the public key) and add it to a list of known keys under your profile for your git hosting provider like github, Bitbucket etc. The precise interface varies depending on which provider you use.

See public-private key encryption.

 

Â