Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find my SSH public key on Windows Server? [closed]

Tags:

windows

ssh

rsa

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.

like image 440
CPdev Avatar asked May 23 '17 13:05

CPdev


People also ask

Why did my SSH keys disappear?

As a security precaution, GitHub automatically deletes SSH keys that haven't been used in a year.

How do I find my SSH public key Windows?

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.

Where is SSH public key stored on server?

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 .


1 Answers

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.

like image 113
Sagar Saxena Avatar answered Oct 23 '22 02:10

Sagar Saxena