Possible fix for Leopard not remembering ssh passphrase

According to several accounts, Leopard has now a built-in support for remembering SSH passphrases in the systemwide keychain, which is great, great, great. However, if at some point during your and your system’s lifetime you’ve installed and used the SSHKeyChain   application (even only once), it might have hijacked your use of that feature — even if you’ve uninstalled it later…

If Leopard does not recognize your attempts to login via ssh, try this: echo $SSH_AUTH_SOCK.  If you get something like /tmp/502, it’s SSHKeyChain’s fault. Most likely, this environment variable is set at some point during login. In my case, nothing showed up in ~/.bashrc or ~/.bash_profile or ~/.*, but after some digging I found out that the culprit was in a MacOS-specific location : ~/.MacOSX/environment.plist — just remove the file altogether.

Now ssh does not even ask for my passphrase after reboot. I guess the passphrase is now stored somewhere in my global keychain. Bah. 

This entry was posted in Apple, Computer, Mac, Software, Technology and tagged , , , , . Bookmark the permalink.

One Response to Possible fix for Leopard not remembering ssh passphrase

  1. Dot in the Galaxy says:

    try $HOME/.ssh/ directory

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s