Adding an SSH Key to Github
Adding an SSH Key to Github
Follow the steps below to add a SSH public key to GitHub to enable git clone using SSH. The key once added to GitHub will need to be authorised using SSO.
-
ssh-keygen -t ed25519 -C "name@digital.justice.gov.uk" -
Press enter until the SSH key is created.
-
eval "$(ssh-agent -s)" -
ssh-add ~/.ssh/id_ed25519 -
more ~/.ssh/id_ed25519.pub | pbcopy -
Paste the text somewhere and it should be in this format:
ssh-ed25519 HEX-VALUE name@digital.justice.gov.uk -
Add the new ssh key in
https://github.com/settings/keys -
Click on the
Configure SSObutton to authorise the key. -
You should recieve an email that a key was added to your account.
-
Try
git clone git@github.com:ministryofjustice/moj-org-discussions.git
Was this page useful?