Generating an ssh-key pair
Generating SSH-key pair (the standard for open-ssh i the EdDSA25519 scheme)
or
to use RSA encryption protocol with a key of 4096 bits. A prompt will ask you about the desired location for the ssh key to be stored:
Enter file in which to save the key (/home/your_username/.ssh/id_ed25519):
If you’ve properly set those up and chose path-to-key/
, the command
should output
id_ed25519 id_ed25519.pub
Adding the key to the machine agent
Start ssh agent
Add the private key to the agent
Copy the public key:
and paste it to GitHub/SourceHut.
Global ssh key configuration
In order to keep two different ssh keys for two source code hosts (Github and sourcehut) .ssh/config
: