Answers for "how to add ssh key to my keygen"

2

ssh keygen

ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
# add the public key to remote
cat ~/.ssh/id_ed25519.pub | ssh <user>@<remote> 'cat >> ~/.ssh/authorized_keys'
# OR
ssh-copy-id -i ~/.ssh/id_ed25519.pub <user>@<remote>
Posted by: Guest on December-21-2021
3

ssh keygen

#generate the key
ssh-keygen -t ed25519 -C <email> -f <filename>
#copy the ssh public key
clip < ~/.ssh/<filename>.pub

#make sure to change the git remote to SSH mode!
Posted by: Guest on June-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language