To generate the SSH key
# Ed25519 algorithm
ssh-keygen -t ed25519 -C christopher@gmail.com
# 4096 bits
ssh-keygen -t rsa -b 4096 -C christopher@gmail.com
To display the ssh key
# Ed25519 algorithm
cat ~/.ssh/id_ed25519.pub
# 4096 bits
cat ~/.ssh/id_rsa.pub
Copy SSH ID identity to server
ssh-copy-id user@host.com