Closed svperfecta closed 9 years ago
Whoa, csshX is crazy :dizzy_face:
That might be cool, but I'm not sure how to go about that or if it makes sense to have a dedicated command just for csshX. What about adding an origin
attribute to the get
command and a --single-line
option?
overcast instance get [instance|cluster|all] origin --single-line
# This could be shortened to:
overcast get [instance|cluster|all] origin -s
# Get origin for single instance:
$ overcast get vm-01 origin
root@1.2.3.4:22
# Get origins for multiple instances or clusters:
$ overcast get my-cluster origin -s
$ overcast get vm-* origin -s
$ overcast get all origin -s
root@1.2.3.4:22 myuser@2.3.4.5:2222 user@4.5.6.7:22222
# With that, you should be able to do...
csshx `overcast get my-cluster origin -s`
That's a killer solution. I didn't realize I could do that :)
Thanks!
On Fri, Dec 19, 2014 at 12:39 PM, Andrew Childs notifications@github.com wrote:
Whoa, csshX is crazy [image: :dizzy_face:]
That might be cool, but I'm not sure how to go about that or if it makes sense to have a dedicated command just for csshX. What about adding an origin attribute to the get command and a --single-line option?
overcast instance get [instance|cluster|all] origin --single-line
This could be shortened to:
overcast get [instance|cluster|all] origin -s
Get origin for single instance:
$ overcast get vm-01 originroot@1.2.3.4:22
Get origins for multiple instances or clusters:
$ overcast get my-cluster origin -s $ overcast get vm-* origin -s $ overcast get all origin -sroot@1.2.3.4:22 myuser@2.3.4.5:2222 user@4.5.6.7:22222
With that, you should be able to do...
csshx
overcast get my-cluster origin -s
— Reply to this email directly or view it on GitHub https://github.com/andrewchilds/overcast/issues/29#issuecomment-67670380 .
You can't yet :trollface:
I'll add to the 0.7.0 milestone.
This is available as of 0.6.4. Thanks!
We recently disabled the option to ssh to multiple machines at one. I think this was a good change, it was sorta confusing, and it's probably true that a script is a better approach.
However, it might be nice to allow multiple SSH if someone has csshX installed. Its not a great tool, but it's pretty popular and available on both OSX & Linux. Just a thought!