How To Get Windows Ssh Key. You must generate two SSH keys (public and private) on the client computer that you will use to connect to the remote Windows host running OpenSSH. A private key is stored on a client side (keep the key safe and don't share it with anyone!), and a public key is added to the authorized_keys file on the SSH server.
First we need to generate key pair. To use it open the Windows Command Prompt by hitting the Windows key and typing "cmd". Or you can just type this in your Git Bash: ls -al ~/.ssh.
For Linux or Mac, print the contents of your public key to the console with: cat ~/.ssh/id_rsa.pub # Linux.
First we need to generate key pair.
This will automatically generate the SSH keys. Every major corporation uses it, in every data center. So you can easily list all public keys in your system with the following command. $ ls ~/.ssh/*.pub On Windows, they are located at C:/Users/<your username>/.ssh folder.