I'm having some issues with SSH KeychainIntegration in OS X Mavericks. I've tried poking around Apple's support site, but haven't seen anyone having my issue. I have seen lots of people who seemingly don't know how to use SSH that well, so I decided to try another community.
First, my configuration is working. I am able to use my key pair and ssh to hosts as I need to, with my credentials being cached in the agent. I am able to see my cached credentials via "ssh-add -l", as expected. I am prompted to input my password by an OS X-style dialog, with a checkbox that says "Remember password in my keychain". I usually ignore this checkbox, but when I check it, I do see my key stored in the keychain. This key stored in the keychain is seemingly never used, however, since I have a password on it. At least that's what I've gleaned from various things I've read. When I enter my password into the dialog, and the key is cached in the agent, I successfully connect, but not before being told "Saving password to keychain failed". Seeing this error message is what led me to investigate further; I don't like getting an error every time I connect.
Things get interesting when looking at the manpage SSH_CONFIG(5). Two options for dealing with the keychain exist, specific to Apple: AskPassGUI, and KeychainIntegration. You're able to toggle these in ~/.ssh/config, and doing so yields some interesting results.
Setting AskPassGUI to no, you'll no longer be prompted with an OS X-style dialog, instead an input text line in your terminal. No biggie. But if you do this, then ssh-agent will not cache your credentials. This is plainly broken, and frustrating because I could easily live with the text prompt if the credentials were cached.
Setting KeychainIntegration to no, ssh throws a hard error, as follows:
~/.ssh/config: line 11: Bad configuration option: KeychainIntegration ~/.ssh/config: terminating, 1 bad configuration options
My question, simply, is this: Is there a way to actually disable OS X Keychain Integration for SSH?