get ssh key code example
Example 1: checking for existing ssh keys
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
Example 2: generate ssh key paitr
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 3: ssh get key
cat ~/.ssh/id_ed25519.pub
Example 4: gen ssh key
ssh-keygen -t rsa -b 4096
Example 5: ubuntu generate ssh key
ssh-keygen -t rsa -C "[email protected]"
Example 6: see ssh key
# see SSH key List
~/.ssh
# see public key from existing file
cat ~/ssh/<filename>.pub