Live data from Hacker News

Shuttle - A simple SSH shortcut menu for OS X

fitztrev.github.io

81–90 of 112 posts

Re: Shuttle - A simple SSH shortcut menu for OS X

#81

Aargh. Only works in 10.8.x - I like new tech but I see no need to upgrade beyond 10.6.8 at the mo' :(

I'm not trying to be jerk but, why?

Because SL had a far better workflow. 10.8 may have a cleaner, flatter, better-looking UI and some nice kernel features underneath, but Mission Control is a disaster compared to Spaces + Exposé.

I still dual-boot 10.6 and 10.8. I find myself in 10.8 more often now, but 10.6 is still a better user experience.

Re: Shuttle - A simple SSH shortcut menu for OS X

#83
post #71

Earlier quoted context omitted.

I'm not sure that is completely fair. He was just making the point that using only your keyboard is much faster and there are already built in tools for doing that. He may have just been asking why someone would want to use a mouse over a keyboard for this type of thing.

And the parent's point is that "why doesn't everybody use all keyboard shortcuts all the time" is a HN refrain that is tired and smug, and yet still the top-voted comment here.

And the answer is because ssh is entirely keyboard driven. There is no good reason to clumsily mouse through a drop-down menu, then move your hand back to your keyboard, when you can type "zz" in an open terminal and you're ready to go!

Re: Shuttle - A simple SSH shortcut menu for OS X

#84
For a long time I was adding aliases to .ssh/config manually and managing things that way but a coworker introduced me to a couple of tools which made things much easier!

One is a tool similar to Shuttle to access all our EC2 instances called Elastics[1] (Mac). It provides a menu listing every EC2 instance, showing it's status, IPs, config details, cpu usage, etc and allows you to click to open SSH. It's not perfect but very handy!

I also use an in-house tool which queries the EC2 API to sync my .ssh/config with aliases for every server based on EC2 tags. If you're interested it's built with node.js using awssum [2] to query AWS and sshconf-upsert [3] to update the config.

[1] http://tundrabot.com/

[2] https://github.com/awssum/awssum

[2] https://github.com/hughsk/sshconf-upsert

Re: Shuttle - A simple SSH shortcut menu for OS X

#85

Earlier quoted context omitted.

I was actually going to do this at first. Something as simple as openURL:"ssh://username@example.com", then let OS X handle opening the default terminal. But I wasn't able to easily specify things like a different private key (for AWS or Vagrant). This at least gives the user the ability to specify any option that they could also specify on the command line.

You can specify per-host keys in ~/.ssh/config (hint: "IdentityFile").

Right. Nevertheless, this tiny little menulet might be a nice starting point for all those people who are not too experienced with secure shell sessions.

Re: Shuttle - A simple SSH shortcut menu for OS X

#87
Cute idea but I prefer to set up these profiles in iTerm2 because when I ssh somewhere, I usually use a different background to differentiate the various hosts (production, staging, etc...).

I also tend to split iTerm2 horizontally and vertically and create ssh sessions in tabs, so I hardly ever need an ssh session in a brand new window.

Re: Shuttle - A simple SSH shortcut menu for OS X

#88

This is amazing! I am currently in the process of moving from a Windows machine to a Mac (first Mac of my life...) and was looking for a replacement to AutoPuTTY ( http://www.r4dius.net/autoputty/ ). This looks like it does just about the same thing. Thanks a ton!

Congrats and welcome to the fold :-)

Re: Shuttle - A simple SSH shortcut menu for OS X

#89
post #69

Menu->Configure opens the configuration file in TextEdit, which is a disaster since it has smart quotes on by default. I spent a significant amount of time trying to figure out was wrong with your json parser before I realized what was going on.

You can change the TextEdit preferences to always open files up as plain text instead of rich text if this annoys you, by the way.

It was opened as plain text. That option is orthogonal to smart quotes, although it turns out those can be turned off globally as well. Thanks for leading me in the right direction.

I still think there must be a better way to do it for Shuttle, though, given what the defaults are. Even something as hacky as replacing smart quotes with normal ones before json parsing would be pretty useful.

Post reply on HN