Hey guys,
So, i’m a non technical guy who followed the instructions at https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 to generate both public and private key with the default file path.
Then, tried to setup FileZilla to connect to my server using SFTP via instructions at https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps where I then couldn’t find the key file apparently stored somewhere locally on my hard drive? I even tried to search on my local HD with id_rsa
Thanks in advanced for the help.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Sorry, to answer your original question, your key files are stored in /home/user/.ssh.
If you issued the ssh-keygen using sudo or root, the key files are in /root/.ssh.
A better method of transferring your keys is to use ssh-copy-id.
Once you generate your keys (ssh-keygen -t rsa -b 4096), fun the following command.
ssh-copy-id user@ip-address
the “ip-address” reference above is the ip of the box that you want to ssh into.