jtriley / StarCluster

StarCluster is an open source cluster-computing toolkit for Amazon's Elastic Compute Cloud (EC2).
http://star.mit.edu/cluster
GNU Lesser General Public License v3.0
583 stars 313 forks source link

Make sshmaster pass through all ssh options #594

Open axch opened 7 years ago

axch commented 7 years ago

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 ....

cariaso commented 7 years ago

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.

axch commented 7 years ago

That interface looks ideal to me.

fabregaszy commented 7 years ago

+1

It makes it possible to use ssh tunnels.