Question

How to connect to my server using SFTP?

Hello friends,

I’m trying to connect to my server using SFTP as told in https://www.digitalocean.com/community/tutorials/how-to-configure-proftpd-to-use-sftp-instead-of-ftp

But I don’t understand how the ssh keys works. How can I get them from the server to use in FileZilla in my Mac?

I can connect to the server using ssh but not sftp. I get this

subsystem request failed on channel 0 Connection closed

And them I want to give access to another friend, to some folders. How do I create a ssh key for him and give him access?

Thanks


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.

In case anyone is still having this issue, here’s how I just fixed it:

It appears that, by default, my droplet did not have the SFTP subsystem enabled for SSH.

To enable it:

1 - Edit your sshd config file

vi /etc/init.d/sshd

2 - Add this line to the file:

Subsystem sftp internal-sftp

3 - Reload the ssh server to use the updated config

/etc/init.d/ssh reload

you need to access to console anda change your root password, after this you can access in to sftp with you username root and your new password, i recomend to use WinSCP

you need to access to console anda change your root password, after this you can access in to sftp with you username root and your new password, i recomend to use WinSCP