Add support for the proxyjump key #5805
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SSH has the capability to route traffic through a proxy. This is done using the
-J xxx
argument. The ProxyJump can be used for security purposes by limiting access to remote servers to specific IP addresses.Previously it had to use wp-cli with a proxy in between. The only somewhat practical way was adding it to your personal
~/.ssh/config
:But this is technical and has to be done on every single machine in a team of multiple contributors.
This PR adds an option
proxyjump
to the alias specification so thewp-cli.yml
config file can specify a comon proxy for all traffic to go through.The change also includes a fix for the
key
attribute. It was part of the options for vagrant but did not seem possible for regular SSH commands, even though is can be usefull.