By plashetcars
i am trying to login via FileZilla using - root & rootpassword using SFTP but system is keep saying - access denied. i dnt know how is it possible and how to fix this - i reset root password and set newpassword too but still same error.
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!
Hi @plashetcars,
Most probably your Droplet does not have the Password Authentication method allowed. There are two ways to go about this. You can use your SSH key to login or allow Password Authentication.
If it was up to me, I’ll recommend you to use an SSH key since a password can be hacked while using an SSH key is less likely.
Anyway, let’s assume you want to use Password Authentication. Use the Recovery Console to enter your Droplet. You can see how you can do so here:
https://docs.digitalocean.com/products/droplets/resources/recovery-console/
Once you are inside the Droplet’s terminal, open the folder /etc/ssh/sshd_config in there search for the line #Password Authentication No. Once you find it, remove the comment mark # and where it says NO replace it with YES. It should look like this Password Authentication Yes.
Once you are done, save the file and restart the SSHD service like so :
service sshd restart
Once you’ve done this, you should be able to connect to your Droplet using your root password.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.