Live data from Hacker News

Shuttle - A simple SSH shortcut menu for OS X

fitztrev.github.io

101–110 of 112 posts

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

#101
post #75
post #63

Earlier quoted context omitted.

See apple.com for your answer. I can't believe on hn you'd ask why anyone should upgrade. Being on the latest version is more secure for one. People can stick with old versions, but then they'll miss out on the new stuff. For some that doesn't matter, but most of hn are early adopters so using the latest would be the norm. While osx has introduced some annoying changes, for those with the skills, or the ability to us…

Looking at apple.com's list of features for mountain lion Lets see what was added in mountain lion that I would use: * Improved preference pane (OK, this might be good) * Accessibility pane available from anywhere (No) * New braille display support (No) * Voice Over stuff (no) * AirPlay Mirroring (Don't have anything that can use that) * Auto Save (Don't really want this, I use vim for most things anyway) * Built-in…

That might be true for 10.7 to 10.8, but 10.6 to 10.8 is a bigger gap. It's all that you listed (and most users would gain more than that) plus ASLR, TRIM support, resizing windows from any edge, AirDrop, improved Finder, much better multi-touch support, the recovery partition, etc.

I was reluctant to upgrade from 10.6 to 10.7 because I really disliked the changes to Spaces/Expose, but even last year it was becoming more and more common to see apps dropping support for 10.6. With Mavericks around the corner, 10.7 will start seeing the same treatment soon. At $20 to upgrade, it's more than worth it.

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

#102
post #100
post #35

I have two-byte aliases for ssh to all of the hosts I use commonly, doesn't everyone? (It even reattaches my remote screen session.) Why would I want to touch the mouse?

Curious. How do you automatically reattach screen? Thanks!

ssh -t myhost.example.net 'screen -D -RR'

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

#103
post #35

I have two-byte aliases for ssh to all of the hosts I use commonly, doesn't everyone? (It even reattaches my remote screen session.) Why would I want to touch the mouse?

Answer: as a browser for hosts you don't use commonly.

Long ago I wrote a similar ssh target browser, in just a few lines of Perl/Tk, that pulled all the hosts from my then-employer's server database (several hundred of them, thousands if you included our dev/test VMs, and constantly changing) and created a simple tree view for reviewing and navigating the set, based on location, functional role, sequence number, customer, software level etc.

Also handy/dangerous was having it launch mirrored gterms for a given set.

Half the staff used this tool. I'd be surprised if most admins of moderate-to-large installations didn't have something similar.

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

#104
post #71

Earlier quoted context omitted.

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!

Cool, how do you do that with a dynamically changing list of hosts that you're getting from somewhere else? I would totally use this with a team dropbox and a .shuttle.json file full of all of our systems.

Or, put another way: think beyond your own use case before posting, yeah?

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

#105

Earlier quoted context omitted.

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!

Cool, how do you do that with a dynamically changing list of hosts that you're getting from somewhere else? I would totally use this with a team dropbox and a .shuttle.json file full of all of our systems. Or, put another way: think beyond your own use case before posting, yeah?

Tab completion?

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

#106
post #97

Earlier quoted context omitted.

This was my first thought too, but then I considered the case where I'm already using the mouse and want to open a terminal and ssh to an app server. With this it would be two clicks, where without out it requires a move to the keyboard, a hotkey, and two keystrokes. However, moving to the keyboard is necessary after the SSH anyway, so that step doesn't really count against the latter. Is it for me? I'll try it, but…

Command-space t e r enter Command-n zz enter

Yes, I could memorize this and 2000 other arbitrary shortcuts. Or, you know, I could use the mouse.

The times per day I open a new SSH session (and I'm a heavy SSH user) are so miniscule that keyboard vs mouse wouldn't do anything than give me a false sense of superiority.

That said, I already know this Spotlight shortcut, and yet I fail to see how eleven (ELEVEN) keypresses as described above are any better than lazily moving my mouse and clicking on a dropdown menu.

No, I don't want to "have my hands down on the keyboard all the time", like they are glued there. Not even when I'm programming. I'm drinking my coffee at the same time, for one.

And my commits (including typed and discarded code) are no more than 1000 lines per day. I could write those in 5 minutes, if keyboard dexterity was all it took to program.

So fuck yeah, I'll move my hands. I move them anyways, to interact with graphical elements that do need a mouse, to drink my coffee, to grab a pen and pencil and do some rough sketch, to scratch my neck, to answer the phone, to fix my glasses and tons of other things. And to not have them go numb.

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

#107

Earlier quoted context omitted.

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

I stay on OS X 10.6 because later versions drop support for PowerPC (Rosetta) applications. Many programs - abandoned programs and games - do not have Intel versions. And some games have Intel versions, but the Intel version costs money or is incompatible with previous saved games. I use these old programs rarely, but like to have the option of opening their files or playing those games. Such applications include Air…

>Such applications include Airburst Extreme, the Fountain Music iTunes visualizer, Marble Blast Gold, N-Ball, Noise, SilverCreator v1.5, Sonic Robo Blast II, Super DX Ball, Super Phoenix, Water Tower, and Wire Hang Redux. There may be some plug-ins for various apps I'm forgetting, too.

Sounds like nothing like a reason to keep using Rosetta. I mean, seriously, "Fountain Music iTunes visualizer" and "Sonic Robo Blast II"?

Some business use case I'd understand (some proprietary program that you just have to use). But those? Find some substitute games and programs and move on.

>I use these old programs rarely, but like to have the option of opening their files or playing those games.

Sounds more like a soft case of hoarding to me.

In any case, just move to 10.8 and keep 10.6 on a VM (or a bootable USB/external drive) for those games.

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

#108

Earlier quoted context omitted.

I haven't looked at it all, but it sounds like you're wanting something like the functionality that SSH's "ProxyCommand"? As an example, we lockdown our servers so that they are only accessible via SSH from a few hosts. I got tired of SSH'ing into server A just to SSH into server B, so I set up my ~/.ssh/config file so that when I "ssh serverB", it uses the ProxyCommand functionality to basically do that for me. Here…

Pretty close yeah, except that serverB is only listening on a private IP, and I want to connect to it in by web browser (http). My primary use case is with hadoop clusters, where I access the jobtracker ui on the public hostname, but when I drill down into task logs it points to private/internal IPs. FoxyProxy allows me to access the private IPs directly/transparently, but I do most of my browsing with Chrome these d…

> ... except that serverB is only listening on a private IP and I want to connect to it in by web browsing (http) ...

Still possible, with ssh's "-D" option that basically turns a remote SSH server into a (HTTP) proxy server!

    $ ssh -D 4444 serverA.example.com
Log in and keep this session active.

In your browser (I use a separate browser, permanently configured this way), configure it to use a (SOCKS5) proxy server for all traffic. The proxy server should be "localhost:4444".

In your address bar, navigate to "http://serverB.example.com". The HTTP traffic is sent over the SSH tunnel to serverA and from there it goes out to the network to its destination. To the destination server (serverB), it appears that the request originated from serverA and that's where the response will go (at which point it is again encrypted and sent over the SSH tunnel back to your local machine). Visit http://icanhazip.com (or a similar site), for example, and you'll see that, to the remote web server, it appears that traffic is coming from serverA.

This isn't the most eloquent explanation, sorry. Look into "SSH socks proxy" and you should find much better explanations. It's really much easier than it sounds! =)

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

#109
post #97

Earlier quoted context omitted.

This was my first thought too, but then I considered the case where I'm already using the mouse and want to open a terminal and ssh to an app server. With this it would be two clicks, where without out it requires a move to the keyboard, a hotkey, and two keystrokes. However, moving to the keyboard is necessary after the SSH anyway, so that step doesn't really count against the latter. Is it for me? I'll try it, but…

Command-space t e r enter Command-n zz enter

First, Cmd+space i enter, a enter saves 6 key strokes.

Second, why would you open a new terminal window, then immediately open a new terminal window?

Third, I accounted for this in my post.

Finally, what kind of response is this? Are you posting a how-to? Are you making a counter point? Are you just being snarky?

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

#110

Earlier quoted context omitted.

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!

Cool, how do you do that with a dynamically changing list of hosts that you're getting from somewhere else? I would totally use this with a team dropbox and a .shuttle.json file full of all of our systems. Or, put another way: think beyond your own use case before posting, yeah?

Crontab a job to generate the aliases and write them to a file, source the file from .profile. Alternately, store the list in an alias-defining file instead of json. Source directly from the dropbox.

No installation required.

Post reply on HN