Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sshmaster pass through all ssh options #594

Open
axch opened this issue Sep 21, 2016 · 3 comments
Open

Make sshmaster pass through all ssh options #594

axch opened this issue Sep 21, 2016 · 3 comments

Comments

@axch
Copy link

axch commented Sep 21, 2016

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
Copy link

cariaso commented Sep 21, 2016

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
Copy link
Author

axch commented Sep 21, 2016

That interface looks ideal to me.

@fabregaszy
Copy link

+1

It makes it possible to use ssh tunnels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants