Where to get my SSH private key?

Hi, I have followed this tutorial to create a SSH key pair through my droplet’s command line:

It seems everything went fine, but where is now my private key to use with FileZilla?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

I’ve deleted all my private key files from my own windows pc (c:\users\bob.ssh\id_rsa) and still I’m able to connect to my DO droplet. How come? And on Win10 Bash, I’ve deleted the keys from “C:\Users\Bob\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\bobu.ssh\id_rsa” and still I’m able to connect. How come?

This question was answered by @kamaln7:

@JonsJava you shouldn’t copy your private key to your server. The server only needs your public key - which should be stored in ~/.ssh/authorized_keys along with the other public keys that are allowed to connect - to authenticate you.

@maelga open FileZilla, go to Preferences -> SFTP -> Add keys, and add your SSH private key (/home/yourusername/.ssh/id_rsa).

View the original comment