By default, the private key is stored in ~/. ssh/id_rsa and the public key is stored in ~/. ssh/id_rsa. pub .
- Where is SSH private key stored Linux?
- Where do private SSH keys go?
- How do I find my private key path?
Where is SSH private key stored Linux?
By default, your private and public keys are saved in your ~/. ssh/id_rsa and ~/. ssh/id_rsa. pub files, respectively.
Where do private SSH keys go?
Your private key will be generated using the default filename (for example, id_rsa ) or the filename you specified (for example, my_ssh_key ), and stored on your computer in a . ssh directory off your home directory (for example, ~/. ssh/id_rsa or ~/. ssh/my_ssh_key ).
How do I find my private key path?
Navigate to the server block for that site (by default, within the /var/www/ directory). Open the main configuration file for the site and search for the ssl_certificate_key directive, which will provide the file path for the private key (some users have a separate configuration file for their SSL, such as ssl.