4 ms·
Going a bit OT here, but I'm pretty sure there are a fair few Mac users here: has anyone noticed the ssh-agent/OSX Keychain integration behaving differently in
by shabble 15y ago
Going a bit OT here, but I'm pretty sure there are a fair few Mac users here: has anyone noticed the ssh-agent/OSX Keychain integration behaving differently in Lion compared to previous versions?
In the past, I'm sure that waking the laptop from sleep, or unlocking the screensaver also unlocked the login keychain, and with it updated ssh-agent with my priv key, but recently I've been having to manually unlock it, which is getting to be quite a pain.
(ssh-agent remains running the whole time, ssh-add -l shows the identity when the login chain is unlocked, but is empty otherwise)
- tzs 15y agoYes, I've noticed something similar, although I do not let it store my ssh password on the login keychain. First time I ssh after a reboot, it asks me, I enter it. Pre-Lion, it was then good until the next reboot. In Lion, it occasionally asks me to re-enter it. As you noticed, this seems to correlate with coming back from sleep or screen lock. It doesn't seem to happen every time, though, so I'm not sure what is going on. According to ps, it is using the -l option to ssh-agent. The man page and the usage message of ssh-agent do not admit the existence of such an option. Perhaps that has something to do with it.
- jbronn 15y agoYour comment about the mysterious `-l` option got me interested and I did some investigation. It looks like a custom option added by Apple to indicate it was started by `launchd`. Here's a link to the relevant patch on their opensource site: http://www.opensource.apple.com/source/OpenSSH/OpenSSH-95.1.5/patches/DVG-4748610+4897588_ssh-agent_via_launchd.patch http://www.opensource.apple.com/source/OpenSSH/OpenSSH-95.1....