xwp / wp-cli-ssh

[OBSOLETE] Seamlessly run WP-CLI commands on a remote server via SSH
157 stars 14 forks source link

Update docs to encourage use of SSH ProxyCommand config #14

Open westonruter opened 10 years ago

westonruter commented 10 years ago

Instead of having the wp-cli.yml SSH config contain multiple ssh commands chained together:

cmd: ssh %pseudotty% util.example.org ssh %pseudotty% prod-util.example.org %cmd%

You can instead update your SSH config to include a ProxyCommand

ProxyCommand ssh -q util.example.org nc -q0 prod-util.example.org 

So that the YML can be more simply:

cmd: ssh %pseudotty% prod-util.example.org %cmd%
jonathanbardo commented 10 years ago

That is pretty useful and does indeed remove a little clutter!