how to create ssh key for github code example
Example 1: how to create ssh key for github
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Example 2: how to create ssh key for github
> Enter a file in which to save the key (/home/you/.ssh/id_ed25519): [Press enter]
Example 3: how to create ssh key for github
> Generating public/private ed25519 key pair.
Example 4: how to create ssh key for github
$ ssh-keygen -t ed25519 -C "[email protected]"
Example 5: how to create ssh key for github
$ ssh-add ~/.ssh/id_ed25519
Example 6: how to create ssh key for github
$ sudo -s -H
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Example 7: how to create ssh key for github
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]