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 SSO
button 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
This page was last reviewed on 5 March 2024.
It needs to be reviewed again on 5 March 2025
by the page owner #operations-engineering-alerts
.
This page was set to be reviewed before 5 March 2025
by the page owner #operations-engineering-alerts.
This might mean the content is out of date.