Wordpress plugin upgrade error: Update failed: Failed to connect to SSH2 Server localhost:22

wordpress
ssh
Category Software and digital electronics / IT
2024-11-13 21:46

When trying to upgrade a WordPress plugin, the upgrade fails with error:

Update failed: Failed to connect to SSH2 Server localhost:22

I checked my ftp user permissions to folders and its credential in wp-config.php.

Everything looks right. But, the error still persists.

Answered by robin
2024-11-20 08:19

Please make sure your server port 22 is open:

sudo ufw allow 22

You can disable the rule after finishing the upgrade:

sudo ufw delete allow 22
×

Login

No account?
Terms of use
Forgot password?