Hacker News new | ask | show | jobs
by HendrikR 4726 days ago
Yet another way to have clickable short-cuts for opening SSH connections using OS X (Safari only): OS X understands URL schemes like ssh://username@hostname.tld:port. Throw it into the address bar or even save this as a bookmark. Safari asks for permission before opening such non-http protocols nowadays and transfers you to Terminal.app. Pro: Less clutter in menu bar. Con: Safari only. (As for me, I prefer ~/.profile and 'alias').
1 comments

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.