• Resolved jrp7591

    (@jrp7591)


    Hello,

    Just got done with a fresh install of WordPress 4.3.1 on my home test bed. I went to test the install plug-in feature through the WordPress interface and had three connection options, FTP FTPS(ssl) and SSH2. The only one that worked was SSH2 which was fine for my test bed however SSH2 is not an option on our production WordPress site and FTP and FTPS(ssl) will not work. I cannot telnet through port 21 on our production box and that is no surprise because I did not install or set up an FTP server on the new production box.

    My questions are, how do I get the SSH2 option on the production box or should I setup an FTP server on it? Is one more secure that the other?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • My questions are, how do I get the SSH2 option on the production box

    Short answer: Install the SSH2 extension for php on the production server.

    [edit] Sorry.. in a nutshell, SSH is secure. FTP is not.

    Thread Starter jrp7591

    (@jrp7591)

    Hey ClaytonJames,

    Thank you.

    Are these the right commands to install SSH2 on Ubuntu 14.0.4?

    sudo apt-get install libssh2-1-dev libssh2-php
    sudo php5endmod ssh2
    sudo service apache2 restart

    Thanks,

    If memory serves me, all I’ve ever needed to do on 14.04 was to make sure openssh-server and the extension was installed then restart apache..

    apt-get install openssh-server libssh2-php

    service apache2 restart

    ..but everyones setup is different.

    Be mindful of the ‘enmod’ command if you need it. ( enmod, rather than endmod )

    Thread Starter jrp7591

    (@jrp7591)

    Thank you ClaytonJames!

    I went ahead and ran this:

    sudo apt-get install libssh2-1-dev libssh2-php
    sudo php5enmod ssh2
    sudo service apache2 restart

    After that SSH2 was available and worked great. Our Web Developer will be very happy 🙂

    Thanks again!

    You’re welcome, glad it worked!

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

The topic ‘SSH2 not a connection option for installing updates’ is closed to new replies.