get public key ubuntu code example
Example 1: cat ~/.ssh/id_rsa.pub
open generated ssh key
cat ~/.ssh/id_rsa.pub
Example 2: ubuntu generate ssh key
ssh-keygen -t rsa -C "[email protected]"
Example 3: ubuntu add public key to server
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server