I've installed the MacPorts high-performance variant of SSH (sudo port install openssh +hpn) but now I would like to switch the default ssh command over. However, there appears to be some moral panic around degrading the sandbox (which was only recently introduced) but I am also worried about integration with OS X's keychain and my server keys....

What all do I need to softlink into /usr/bin/ssh or is there a better way to do this?

  • 3
    Wouldn't setting your $PATH be the obvious first and perhaps final step to using an alternate ssh? – bmike Nov 26 '13 at 1:15
  • 1
    @bmike That's what I thought! It turns out there was a typo in my ~/.bash_profile that was (somehow) pushing the /opt/ declaration to the end instead of the beginning! You should put in a real answer so I can mark it : ) – Indolering Nov 28 '13 at 19:08
  • Since you asked so nicely... :). What is the source of your icon. It's quite nice. – bmike Nov 28 '13 at 20:05
  • I made it, it's my "logo" – Indolering Nov 28 '13 at 21:04

You can list the /opt directories before the system path and the shell will prefer the first match for ssh unless a script explicitly calls the system version.

By default, MacPorts lists /opt/ in your $PATH before the standard system paths. I would inspect your ~/.bash_profile carefully to make sure there are no typos.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .