WordPress.org

Ready to get started?Download WordPress

Forums

Limited SSH Access no PHP support for SSH/SFTP = Can't update or plugin. (5 posts)

  1. newbitech
    Member
    Posted 4 years ago #

    I think wordpress would be much better if a plugin was created to that lets me use my SFTP login credentials to update and install plugins.

    FileZilla has been handling moving files via the ssh2.sftp tunnel and PuTTY has handled everything else that I don't want or can't use FileZilla for.

    I have been hacking away at the shell and php trying to figure out how to make this work, and it occurred to me to make a post here because it really seems like this issue is going to haunt me until WordPress can do what I need it to do. I see a ticket out there on a pure php solution, and it was suggested that a plugin may be the best route.

    The major problem seems to be creating the SSH tunnel which requires ssh2.so to be loaded in apache for the PHP hook. Well, FileZilla and PuTTY don't seem to mind the lack of the PHP apache module.

    So how can WordPress use PHP to communicate with SSHd without having to rely on apache? Only thing I found so far is this. phpseclib, a pure php SFTP solution. Looks like it will use apache modules if they are there, but if not, then it can fall back on its own subroutines.

    No, this doesn't need to be in the wordpress core, but there seems to be a developing niche there to fill. A plugin would be so very useful to people like me who are working to bring wordpress to the throngs of people on shared hosts.

    Apache Stuff
    Apache/2.2.3 (Debian)
    PHP/4.4.4-8+etch4 mod_ssl/2.2.3
    OpenSSL/0.9.8c
    mod_php4

    SSH Stuff
    OpenSSH_3.8.1p1 Debian-8.sarge.4
    SSH protocols 1.5/2.0
    OpenSSL 0x0090803f

    PHP Stuff
    PHP 4.4.4-8+etch4 (cli)
    Zend Engine v1.3.0

  2. MichaelH
    Member
    Posted 4 years ago #

    Guess this is the ticket you are talking about so will add for info:
    http://core.trac.wordpress.org/ticket/10348

  3. newbitech
    Member
    Posted 4 years ago #

    Thanks Michael, I meant to add it. I am building a dev/test environment now and will try to figure out how to add some rudimentary plugin functionality for phpseclib. I at least want to get this going on my blog. I tried the pear route, but the problem is, I still would need the capability of restarting the apache server to read the alternate extension. enable_dl() is on in my server at least at the core httpd.conf and if I can hack something together that tells apache to execute the ssh2.so then I'd be good. This will only work in a severely limited case, as in my private web host.

    And um, yeah, the admin is my partners brother, but we have some more shall we say pressing issues to bother him with, besides installing libssh2 OR moving us onto a VPS. The bigger need I see tho for me at least is in the other domains that absolutely won't be going to VPS. We could get a dedicated with root access, but ahh, we aren't looking to host huge sites, seems a bit overkill just to get a niche blog rolling.

  4. nancyrenzullo
    Member
    Posted 4 years ago #

    Newbitech,

    Sorry to jump on your question with a question ... but our webserver supports SSH/SFTP not SSL/FTPS ... and the auto-upgrade interface for WP only gives two options: FTP and FTPS. Have you found a way to set up autoupgrades over a secure FTP/SSH?

  5. newbitech
    Member
    Posted 4 years ago #

    nancy, here is a link to getting php to work with ssh.

    http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/

    I haven't done it yet with testing because I am still busy getting my blog up, but it sounds like plenty other have.

    take a look here

    http://devioustree.co.uk/2009/02/21/auto-update-wordpress-with-sftp/

Topic Closed

This topic has been closed to new replies.

About this Topic