Hello, all. I know this question has been asked before, but I’ve been trying to secure my WordPress installation with SSH keys (so it’s a little bit safer). I followed the tutorial located here:
However, now when I go into my admin area and try to update or install a theme or plugin, it’s now asking me for my “wp-user” FTP credentials, instead of just auto-updating. I followed the tutorial to the letter, but I can’t make heads or tails of the “troubleshooting” section at the end. Everything looks like it’s absolutely set up correctly, but it seems the wp-user isn’t viewed as the “owner” of WordPress somehow (even though the ls -l command shows that it definitely is).
Is there something else I should attempt? I did try doing “sudo chown wp-user:www-data /var/www” (WordPress is installed in the root - and it’s not a 1-click install, it’s running LAMP and I manually installed it) but that didn’t do anything.
Any help would be appreciated, 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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!