Question

I recently added a second SSH public key, but SFTP login is not working

I recently added a second public key to the .ssh/authorized_keys file (https://www.digitalocean.com/community/questions/how-to-i-add-a-second-key-to-the-authorized_keys-file), but while to login to the server with SSH works, it doesn’t work for SFTP with the second public key that I installed.

Am I missing something?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am having this same issue using FileZilla SFTP - I’ve followed the instruction for setting up my key, adding a key to an existing droplet and some fixes suggested along the way. Would love some support to get connected to the site.