• Manual updates from one version of WordPress to the next are a real nuisance because they take a long time. However, I’m unable to use the automatic updater for two reasons:

    1. I’m unwilling to have my WP files owned by the server user due to security concerns.
    2. WP’s other option is to update via FTP. However, FTP is insecure, and I’m unwilling to enable FTP access to my host.

    It doesn’t appear to me to be possible to auto-update WordPress via ssh/scp. So, I’m wondering whether any script has been written to update WP so I don’t have to spend so much time updating manually.

    Info about my environment: My host runs FreeBSD and provides me with shell access via ssh. My development machine is a Linux box. Both environments include support for all the standard scripting languages, Windows stuff excepted. I keep a local version of the code in a bzr repository and typically modify that before uploading to my host.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe if the (pecl) SSH2 extension is enabled on your host, you’ll see an additional radio button selection option for updating over SSH using a uname/passwd or key pair in your update dialog in the dashboard.

    Or you might take a look at upgrade constants, and see if it might be possible to auto-update over SSH by defining the method in wp-config instead.

    WordPress Upgrade Constants

    [edit] – ‘yep. The SSH info turned out to be right below the Upgrade Constants section..

    “There are two ways to upgrade using SSH2.

    The first is to use the SSH SFTP Updater Support plugin. The second is to use the built-in SSH2 upgrader, which requires the pecl SSH2 extension be installed. “ Enabling SSH Upgrade Access

    Thread Starter Scott Severance

    (@mssever)

    Thanks for your reply. I ended up using the SSH SFTP Updater Support plugin and it worked just fine.

    Nice!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Looking for an update script’ is closed to new replies.