How to update wordpress plugin and theme while using SFTP SSH connection

I installed Ubuntu 14.4.5 x64 in a droplet i created and installed vestaCP to host mulitple wordpress sites. I am using SFTP and no FTP is used for security purpose. Problem came when i tried to update my plugins. I was asked for Hostname, FTP Username, FTP Password. i can give my IP as host name for username root but for password I need to upload the SSH file but there is no option for that. If there is any solution please give me the details.


Whenever i try to save the SSH key after giving the comment ssh-keygen -t rsa -b 4096 it says "Saving the key failed’. i specified all my paths but its not helping. I am using nginx and already installed vestaCP in my ubuntu 14.4.5 x64.

Here i shall specify my code samples that I used here.


I am using this because i did not directly installed wordpress in the server but rather used vestacp to host multiple sites.

You need to make files in your public folder writable by nginx user. Simply find the nginx user (default www-data) and change the folder ownership to that user. Your errors will go away.

I have already read the tutorials… but I am using Nginx and my Apachi is desabled

Submit an 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.

I have already read the tutorials… but I am using Nginx and my Apachi is desabled

You need to change wp-config to use SSH, and specify user, SSH keys.

Also you should install php-dev, libssh2, libssh2-php to make it work.

Refer to How To Configure Secure Updates and Installations in WordPress on Ubuntu. It’s an older tutorial, but will help you