I ran the following SSH commands to create my rsa key but I don't know where the file was created at
drlloyd@DIS-7L79KF1 ~/.ssh $ ssh-keygen -t rsa -C "[email protected]" Generating public/private rsa key pair. Enter file in which to save the key (/f/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /f/.ssh/id_rsa. Your public key has been saved in /f/.ssh/id_rsa.pub. I removed the rsa fingerprint
Where was the id_rsa.pub file created at?
Public-Key Basics ssh/id_rsa and the public key is stored in ~/. ssh/id_rsa. pub . The private key should only be kept on your local system and should be encrypted using a passphrase that is at least as strong as any password you would normally use.
The id_rsa. pub file is basically some encrypted text in the . ssh folder under the home folder in Linux and is used for public-key cryptography. It uses the . pub file format.
The public part of the key is saved in the id_rsa. pub file, while the private part is saved in the id_rsa file. Both files can be accessed from this location using Explorer: C:\Users\[your user name]\. ssh .
The contents of your public key (\. ssh\id_ed25519. pub) needs to be placed on the server into a text file called administrators_authorized_keys in C:\ProgramData\ssh\. You can copy your public key using the OpenSSH scp secure file-transfer utility, or using a PowerShell to write the key to the file.
Er, ~/.ssh
, or specifically in your case /f/.ssh
?
If you're on Windows, look at F:\.ssh
For me this file existed in c:/Users/Lee/.ssh
Lee
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