ssh key code example
Example 1: how to generate ssh key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: ssh get key
cat ~/.ssh/id_ed25519.pub
Example 3: copy ssh keys
pbcopy < ~/.ssh/id_rsa.pub
Example 4: ssh key
ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub | clip
Example 5: ssh key
ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub | clip
Example 6: SSH key
$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard