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