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_ed25519more ~/.ssh/id_ed25519.pub | pbcopyPaste the text somewhere and it should be in this format:
ssh-ed25519 HEX-VALUE name@digital.justice.gov.ukAdd the new ssh key in
https://github.com/settings/keysClick 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
This page was last reviewed on 1 July 2025.
It needs to be reviewed again on 1 July 2026
by the page owner #operations-engineering-alerts
.
This page was set to be reviewed before 1 July 2026
by the page owner #operations-engineering-alerts.
This might mean the content is out of date.