generate ssh key windows code example
Example 1: generate ssh key paitr
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: linux create public key
ssh-keygen -t rsa -C "[email protected]"
Example 3: ubuntu create a ssh key
cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
Example 4: how to generate ssh key
$ ssh-keygen -t ed25519 -C "[email protected]"
Example 5: github how to add ssh key
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa