jdhostingadmin
Forum Replies Created
-
Forum: Plugins
In reply to: [Login Logout Menu] Login Logout menu plugin does not work in PHP 8.0On GitHub someone has updated the plugin to work with PHP 7.2, which I tested as well and worked with PHP 8
Forum: Developing with WordPress
In reply to: wp-cli connection to remote host with ssh keySo in conclustion, wp-cli doesn’t have a way to support ssh key auth, it would need to be configured on the server the command is executing on.
Forum: Developing with WordPress
In reply to: wp-cli connection to remote host with ssh keyI found my answer here at the very bottom of the thread:
https://github.com/wp-cli/wp-cli/issues/2754
I had to setup a ~/.ssh/config to specify the IdentityFile and other connection information.
~/.ssh/config:
Host server HostName 1.1.1.1 User user Port 22 IdentityFile ~/.ssh/key
I could then run the command like so:
wp --ssh=server/var/www/html plugin update --all
Now the command can run without prompting for the remote servers users password.
Forum: Developing with WordPress
In reply to: wp-cli connection to remote host with ssh keyI have already setup the ssh key authentication and tested connecting from server1 to server2 and server2 to server1. Both servers are set with ssh to listen on port 22. I was wondering if wp-cli has an option to use the ssh key like standard ssh would.
Standard SSH:
ssh -i ~/.ssh/key user@server:22wp-cli option?:
wp –ssh=-i ~/.ssh/key:user@server:22/var/www/html plugin update –all
wp –ssh=-i ~/.ssh/key:user@server:22/var/www/html theme update –all
(obviously this format failed, also using dummy data)This typically indicates that the usermeta capabilities are broken in the database.