Report this

What is the reason for this report?

How to connect to my server using SFTP?

Posted on March 30, 2016

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



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.

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

I can clear up a couple things for you…

  • The way SSH keys work is that they exist as a private/public pair that together grant you access. The keypair is generated on your local computer and your public key is then added to the server in the file ~/.ssh/authorized_keys

  • The SSH client on droplets supports SFTP by default, ProFTPD is not generally required unless you have specific requirements.

  • The option to add your private key to FileZilla can be found in FileZilla Settings > Connection > SFTP > Public Key Authentication

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.