200 points · by fitztrev · 13y ago · 109 comments
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's what it looks like in ~.ssh/config:
Host serverB
ProxyCommand ssh serverA.example.com -W %h:%p
When I "ssh serverB", it connects to serverA first and then connects to serverB. I could be wrong but it sounds like that is what you were talking about.ProxyCommand looks pretty cool though, wasn't aware of it - thanks!
Why would I want to touch the mouse?
Is it for me? I'll try it, but I don't think so. But I think it serves a need for some people, and I can always get behind ideas that serve or improve--successful or not--workflow/dev needs.
Great work Trevor!
Command-n
zz enter
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.
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?
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.
I wonder why it's not reading ~/.ssh/config btw, should be doable.
https://gist.github.com/oogali/5975670
Tab completion for scp/sftp/ssh based on my ~/.ssh/config.
It should at least provide a mapping from the json to ~/.ssh/config formats.
Symlink'ing a ssh config file with Dropbox was the best decision I've made in a long time.
Same config file no matter which PC I am using, and you can always look up the IP/Hostname and which key it uses (don't store keys on dropbox for "critical" systems) through the dropbox web interface.
[1] https://github.com/isometry/alfredworkflows/tree/master/net....
>ssh [host]
If you keep your ~/.ssh/config up to date and can remember your host names, I find it quicker to do that than bothering with the workflow.
* Alfred for '>' command * an alias for each server. * Autologin using ssh keys.
Targetting the latest release make life easier for devs.
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.
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.
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.
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.
I've been trying to add the same kind of thing to my site but I don't know how to do it.
I'm not sure about OS X, but FreeBSD and Linux distros should have ffmpeg in ports/repos.
There's also byzanz for ubuntu.
My approach still has one advantage: I have 60 user/server combinations and can order them by user/rack/whatever by using subfolders. And it's possible to assign custom icons, which I never did...
Still this project is a lot prettier and appears to have been more refined while mine was hobbled together in a hour or two and fit in one Python file ( reasonably, its not 10 files in one ).
Still haven't gotten anything released but my WIP builds have certainly proven useful in my daily workflow. Has been a nice project for teaching myself Obj-C too!
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.
"You mean you weren't doing this years ago? Why do I need a UI to get to a shell command? I'm already in the shell!"
And more "dynamic" and "generated" menus (all that is needed is the "include" directive in the menu handler and cron).
As a quick feature suggestion, I wonder if it's possible to have a shortcut key to get into the menu, and then possibly shortcut keys to every entry in the list?
It's actually the Solarized Dark, to be more specific. :)
https://github.com/fitztrev/shuttle/blob/master/Shuttle/shut...
Basically just do `vagrant ssh-config box_name_here` to get the port and identity file that you need to specify in the SSH command.