salt/utils/cloud: Allow to customize ssh gateway command/options #48062
What does this PR do?
By default, nc command (
This commit allows user to provide a customize option for gateway. Please note
What issues does this PR fix or reference?
Users are forced to use
Users can use a customized command to create ssh proxy for
Commits signed with GPG?
The text was updated successfully, but these errors were encountered:
By default, nc command (nc -q0 %h %p) is used to create gateway. This is not always possible in some restricted environments. An alternative is to use native support from ssh: -W %h:%p. This commit allows user to provide a customize option for gateway. Please note the (wait_for_port) process may need another patch.
Is there any good start to write and improve unit tests (e.g., in my PRs)?
At my laptop, the tests are passed as seen here https://gist.github.com/icy/a59f975ba54224b7d941b2e38ccc74a1 , I don't think these tests are working fine. I did some smoke tests actually and it's not a recommended way (expensive?)