sajad torkamani

Login to your Digital Ocean droplet and generate an SSH key:

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

Start ssh-agent:

eval "$(ssh-agent -s)"

Add SSH key to the ssh-agent:

ssh-add ~/.ssh/id_ed25519

Copy your SSH public key to your clipboard:

cat ~/.ssh/id_ed25519.pub

Add the SSH public key to your account on GitHub. For more information, see “Adding a new SSH key to your GitHub account.”

Add GitHub SSH key for Digital Dcean server

Sources

Tagged: Unix