Question

Installing themes on wordpress requires FTP/SSH credentials

I’m asked to enter in FTP/SSH credentials for installing themes on Wordpress. I’ve installed the wordpress with nginx and SSH key, and I tried copying and pasting the private and public keys to the input boxes, but that didn’t work.

I’m using the root user and changed ownership of the directory /var/www/html.


Installing Theme:

Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP or SSH credentials to proceed. If you do not remember your credentials, you should contact your web host.

Hostname FTP/SSH Username FTP/SSH Password This password will not be stored on the server.

Connection Type FTP FTPS (SSL) SSH2

Authentication Keys Public Key: Private Key:

Enter the location on the server where the public and private keys are located. If a passphrase is needed, enter that in the password field above.


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.

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
April 10, 2017
Accepted Answer

WordPress will ask for these credentials if it detects that it does not have permission to write the needed files itself. This can be avoided completely by resetting these permissions so the files are owned by the user account used by your web server.

If you are on Ubuntu or Debian you can run the following command on your droplet to set these permissions for the default web root of /var/www/html

chown -Rf www-data:www-data /var/www/html

Once this is run you should no longer see the message prompting for credentials when installing themes.

use this code , wordpress asking for ftp details because wordpress doesn’t have permission to write in your server. use these two commands in terminal.

$sudo a2enmod rewrite $sudo chown -R www-data /var/www

video guide https://www.youtube.com/watch?v=RGGWVUIvhnk

10 astuces pour perdre du poids rapidemenet

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.