Make Snow Leopard stop remembering the passwords for your SSH keys

In: Apple

30 Jan 2010

There seems to be a difference in the ssh-agent of Leopard and that of Snow Leopard, with the latter remembering passwords indefinitely, while Leopard actually respected your option of not saving in the keychain and therefore not remembering the password for your SSH secret key.

Best workaround I’ve found so far is to just plain kill ssh-agent every minute. That way I can guarantee I can leave my Mac where ever and know that if someone tries to connect to any of my remote machines, they’ll have to type in the password for the SSH secret key, and at the same time I’m not messing around with Apple’s plist files to change the start options for ssh-agent and trip something down the line during an update or something.

Workaround
Open Terminal.app (or your choice of terminal application)
Type: crontab -e
Enter this on a newline:
* * * * * killall ssh-agent >/dev/null 2>&1
Save and come next minute Snow Leopard will start behaving the way you intended and were used to in Leopard, which also happens to be the right way for most people I know.

Comment Form

About this blog

Outlet for giving a crap.

  • Billy Cheeseballs: Everything you discuss above, I resolved in summer 2010 without trouble on my iPhone, in 2011 with a [...]
  • Qtltjxbc: I'd like to withdraw $100, please http://gojuigyuly.de.tl preteen girls 3d good gawd..whered they f [...]
  • Fbpjmacf: I quite like cooking http://hogesuporo.de.tl cild model galleries Lovin' the tan lines and nail pol [...]
  • Twkhoznb: Get a job http://roripyniqeyn.de.tl love among nymphets Damn .. he had that Girl cumming hard on hi [...]
  • Alton Miller: A web search on "Google contacts sucks" brings up anguished conversations from 3+ years ago -- and n [...]

Services I like enough to recommend

Subscribe via Email

Enter your email address:

Delivered by FeedBurner

Twitter: intlect