I am trying to find my SSH key on Windows Server through PowerShell or CMD.
I don't have the option to install PuTTY. Basically I need all the details on my SSH key, but I am having no luck whatsoever.
The Linux machines were easier, as we had PuTTY installed.
As a security precaution, GitHub automatically deletes SSH keys that haven't been used in a year.
Open Terminal . Enter ls -al ~/.ssh to see if existing SSH keys are present. Check the directory listing to see if you already have a public SSH key. By default, the filenames of supported public keys for GitHub are one of the following.
Public-Key Basics By default, the private key is stored in ~/. ssh/id_rsa and the public key is stored in ~/. ssh/id_rsa. pub .
You can find your id_rsa.pub file which contains your key. Did you use OpenSSH to generate the key?
The default location for saving the public key is C:\Documents and Settings\username\.ssh\
or C:\Users\username\.ssh
Default file names can be:
d_dsa.pub id_ecdsa.pub id_ed25519.pub id_rsa.pub
Or you can just type this in your Git Bash:
ls -al ~/.ssh
This will list all the files in your .ssh directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With