Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

WordPress: Enabling SSH/SFTP Updates

Posted on 2010-06-29 By Jon No Comments on WordPress: Enabling SSH/SFTP Updates

The first time I dealt with WordPress was when I first started doing IT administration for FanHistory. At that point in time I knew nothing about it and it was breaking horribly.  Luckily I managed to fix the issues (which turned out to be Varnish proxy related) and get it standing mostly on its own two feet.  One of “minor annoyances” I ran into then and absolutely had to figure out during my migration, was the lack of SSH or SFTP based updates.  By default when you go into add or update the plugins (or the software itself) you have only two options FTP and FTPS (SSL).  I run neither of these, FTP is majorly old and very insecure.  FTPS is just not common.  I thought I was stuck doing things manually, until I found out…. You can enable SSH2 based updates in WordPress. Better yet, it is SUPER easy.

Get yourself to a command line, and assuming your running Ubuntu or Debian:

  • apt-get install libssh2-php
  • /etc/init.d/apache2 restart
  • Done!

It is literally that easy, all you need to do is install libssh2-php which is the PHP bindings for libssh2.  If your running another flavor of Linux, just search your package manager for “libssh2” and pipe it to “grep php”.  You’ll most likely find the package your looking for.  You may also need to manually enable the module; Ubuntu does that for me.  After you restart Apache with that new module, simply go into your WordPress administration interface and you’ll see the “SSH2” option in any Install/Update screen.

Note: It does support SSH keys, along with the standard password authentication.  I’ve not tried a key with a password on it, so if you try it, let me know how it works.

Linux, WordPress Tags:apache, ftp, ftps, libssh2-php, linux, sftp, ssh, ssh keys, ssh2, ssl, Ubuntu, varnish, wordpress

Post navigation

Previous Post: Amazon’s desperate Video On Demand promotions
Next Post: WordPress: Smart backups BackWPup and Amazon S3

More Related Articles

WebDAV Clients – Linux & OSX Apple
Quick Take: Everything Breaks – Even Static Sites QuickTake
Serendipity to WordPress – Post import WordPress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

June 2010
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
27282930  
« May   Jul »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme