Default location for ssh public & private file

November 23, 2014 845 views

i have installed my server (nginx with ubuntu14.04). when creating the droplet i have chosen ssh key which i created with puttykeygen. now when i try to upload a theme in my wordpress it ask for following informations

  1. Hostname (i gave mysite.com)
  2. FTP/SSH Username ( i gave username i use with putty/filexilla)
  3. FTP/SSH password: ( i leave it blank as i didnt choose passfrase when i create ssh key with puttykeygen) 4.Authentication Keys Public Key: ??? Private Key: ???

now i m confused with above 2 file location. where digitalocean keep these 2 files by default? i have tried to upload my generated private and public key file under folder .ssh and gave that path but didnt work.
it says

Public and Private keys incorrect for root

im actually new to these so if anybody could assist me with some beginner tutorial i would really appreciate that.

1 comment
1 Answer


You can configure Wordpress to just directly write the theme instead of uploading it via SSH. Run the following commands to give php5-fpm permission to write to Wordpress's wp-content directory (which is where the themes are stored):

sudo chgrp -R www-data /var/www/wp-content
sudo chmod -R g+w  /var/www/wp-content

If you want to enable auto updates, you will need to extend the write permissions to the all of Wordpress's files:

sudo chgrp -R www-data /var/www
sudo chmod -R g+w  /var/www
Have another answer? Share your knowledge.