If you have a Organization with SSO turned on but want to use SSH keys instead of HTTPS auth.
(for example the
Step 1: Generate a different SSH key to use with the organisation. For example, the private and public key
are in ~/.ssh/companykey
and ~/.ssh/companykey.pub
.
Step 2: Add the key and authorise the key with SSO - in https://github.com/settings/keys use "New SSH Key" to add the key, then use 'Configure SSO' to authorise it for the target organisation.
Step 3: Create a SSH configuration for the different key. Add the following to ~/.ssh/config
.