Report this

What is the reason for this report?

Where to get my SSH private key?

Posted on July 1, 2015

Hi, I have followed this tutorial to create a SSH key pair through my droplet’s command line: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets

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



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!

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.

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

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?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.