ssh with private 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: how to generate ssh key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 3: ssh with private key terminal
ssh -i path/to/private/key user@servername
Example 4: ssh key
ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub | clip