sajad torkamani

Generate keys

ssh-keygen -t ed25519 -C "<email>"

Add key to SSH agent

eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519

Add keys to GitHub

Copy your SSH public key to your clipboard.

xclip -selection clipboard < ~/.ssh/id_ed25519.pub

Add copied key to SSH keys page. Make sure not to add any new lines.

Delete any old and redundant keys.

Sources

Tagged: SSH