WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

just wondering if theres a way to define sftp info in wp-config.php the same way you can with ftp.

makes plugin adding a lot easier!


share|improve this question

Do you mean SFTP or FTPS?

For SFTP you need to enable libssh2-php on your server and link it to your PHP and restart your ssh, you can get the downloads here http://www.libssh2.org/

Once you install that you should automatically see SFTP/SSH option in your admin under "Connection", though I believe there was some recent dev talk about dropping this from the core and making it into a plugin, not sure where that went.

There is a SFTP PHP server guide here that will work with WordPress or anything running on php, http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.