This is the missing link for you Fedora Users, without this package installed you will not even see the SSH2 Option in wordpress for updates.

yum install php-pecl-ssh2

then restart apache

httpd -k restart

After installing that (and having SSH2 installed and all the other Apache / PHP Goodies) the SSH method opens up in WordPress.

Note you do not need an authorized key, just username and password for SSH. Notice that the host can be anything from localhost to the IP Address of the domain, any way you would log into SSH.

Also make sure to set the following in your wp-config,

define(‘FTP_BASE’, ‘/var/www/’);
define(‘FTP_CONTENT_DIR’, ‘/var/www/vhosts/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/var/www/vhosts/’);

Nice thing is you can use your root user and password (for you dangerous types) to upgrade, just don’t give it to anyone else!!!! This is a security risk!!

Other good resources on this topic (but missing the above command and advice):

Digital Nomad. Programmer, Entrepreneur. Academic, Philosopher, Spiritualist. Gamer, VR/AR, IoT & Wearables. CTO Miami, FL Native

Next Post