How do I save my SSH key on my PC?

I am trying to set up FileZilla and on step one of the tutorial it says to “Click Add key file…, then locate your Droplet’s private SSH key on your local machine. If FileZilla prompts you to convert the file into a supported format, click Yes.” The program automatically looks into my PC files for it. So I suspect I have to have the file downloaded to my PC.

How do I do that?

Submit an answer
Answer a question...

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.

Site Moderator
Site Moderator badge
April 6, 2022

Hi @aecsp2000,

You need to add your local SSH key rather than your Droplet’s SSH key. Here are how SSH keys work:

Let’s assume you create a key locally on your laptop. You have two files of that key, your public and your private key. You keep the private key, private, never give it to anyone. The public key is what you need to add to the external system to be able to connect.

In your case in order to access your Droplet, you’ll need to add your public SSH key to your Droplet. Keys are usually added in ~/.ssh/authorized_keys.

Once you add the key to the system you want, when you try to login, your system sends a signal to the external system it wants to connect and authenticates with the private key.

Back to your case, what you need to add to your FileZila is not the Droplet’s key but your public key. Additionally, your public key needs to be in the authorized_keys on your Droplet.

Check out this article, it will help you out in your situation:

Site Moderator
Site Moderator badge
April 7, 2022

Hello there,

If you haven’t created the key, then please follow the tutorials which area listed below and then upload your ssh-key to your droplet.

I want to include the links for How to Create SSH Keys with OpenSSH on MacOS or Linux and How to Create SSH Keys with PuTTY on Windows which are part of the tutorial which KFSys already mentioned here

For security reasons, you can’t add or modify the SSH keys on your Droplet using the control panel after you create it, but you have several options to add and modify them via the command line.

How to Upload an SSH Public Key to an Existing Droplet

Hope that this helps!