how to find my ssh public key ubuntu code example
Example 1: cat ~/.ssh/id_rsa.pub
open generated ssh key
cat ~/.ssh/id_rsa.pub
Example 2: ubuntu add public key to server
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
open generated ssh key
cat ~/.ssh/id_rsa.pub
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server