Skip to content

Latest commit

 

History

History
executable file
·
27 lines (16 loc) · 776 Bytes

add-an-ssh-key-to-github.md

File metadata and controls

executable file
·
27 lines (16 loc) · 776 Bytes

Add An SSH Key To GitHub

Category: Git

Assuming you have generated a SSH key pair, you will need to upload your public key to GitHub in order to interact with the repository.

Print the public key to the console.

cat ~/.ssh/id_ed25519.pub 

Output:

ssh-ed25519 DFCEA1NzaC1lZDI1NTE5BBBBIAthmFj00y8yWLLkilZ3Be+dS6HzDS4vZrvObvmgHwTC [email protected]

Log into GitHub and navigate to Settings -> SSH and GPG keys.

Press the button "New SSH Key".

Specify a Title for the SSH key (for example, "My Home Laptop").

Copy the output from displaying the public key in the console into the Key field. This should include the email address specified when generating the SSH key.

Press the button "Add SSH key" to save your configuration.