create a ssh key in windows 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: create a ssh key
ssh-keygen -t rsa -C "[email protected]"
Example 4: 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"