StarCluster
StarCluster copied to clipboard
Make sshmaster pass through all ssh options
Would it be possible to make starcluster sshmaster <clustername> accept all ssh options by just passing them through to the underlying ssh command? I regularly want to use ssh for tunnels (-L) and starting background jobs (-n, -f), and it would be very nice to have the benefit of starcluster's node name and private key management for those. As it stands, I have to fall back to manually identifying the IP address of the node, and the private key that it trusts, in order to construct an ssh command with those hard-coded; and, of course, such a command cannot be saved across cluster restarts, because the IP addresses change.
The next best thing would be to make a starcluster master-ip command, so I can write ssh user@starcluster master-ip ....
There seems to be a convention in unix of using -- for a similar purpose, as noted at https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean-also-known-as-bare-double-dash
which would suggest
starcluster sshmaster <clustername> -- -n -f
would probably follow the convention and allow starcluster to still have it's own options, as distinct from the ones it should pass.
That interface looks ideal to me.
+1
It makes it possible to use ssh tunnels.