wp-cli connection to remote host with ssh key
-
I am trying to use wp-cli to execute plugin and theme updates on a remote host. This is possible using ‘–sh=’ like so:
wp –ssh=user@server:22/var/www/html plugin update –all
wp –ssh=user@server:22/var/www/html theme update –allWhen these commands are ran, they prompt for password for the user on the remote machine. Is there a way for the 2 servers to authenticate using an SSH key?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wp-cli connection to remote host with ssh key’ is closed to new replies.