Public and Private keys incorrect for wp-user
I’m on CentOS 7 with a LAMP stack.
I’ve a Wordpress installation which I’m trying to enable it to perform updates and installations via SSH. I’ve followed this tutorial from Digital Ocean which I’ve performed every step and more than double checked.
The problem is that whatever I’ve tried, I keep getting the error
Public and Private keys incorrect for wp-user when I try to update a plugin or install a theme.
A minor difference than the tutorial I’ve followed: the tutorial didn’t gave a password for the specific Wordpress user but I did. I read somewhere that it might fail because of that.
Also as you can see as well, the tutorial goes on Ubuntu. The packages I’ve installed instead are(tutorial package > my installed package):
- php5-dev > php-devel(v5.4.16-36)
- libssh2-1-dev > libssh2-devel
- libssh2-php > … (did some mumbo jumbo here)
sudo pecl install -f ssh2 gives the following:
PHP Warning: Module 'ssh2' already loaded in Unknown on line 0
downloading ssh2-0.12.tgz ...
Starting to download ssh2-0.12.tgz (26,223 bytes)
.........done: 26,223 bytes
ERROR: pecl.php.net/ssh2 not installed
Can you please help me debug?
P.S. I’ve also asked the question here which hasn’t been answered yet but a user commented some on it although it wasn’t really helpful. I’m just sharing it as a heads-up.