Several native Mac applications I've used that open SSH connections seem to have this magical ability to find the appropriate public+private keys to use for connecting (if present) and then present the system keychain dialog to ask the user to enter the password to decrypt the private key. I'd like to do this in my application. How does this work, exactly?
I'm currently using https://github.com/Lejdborg/NMSSH as an Objective-C wrapper for libssh which provides methods for authentication via public+private keys, but as far as I can tell I'd have to pop open a file open dialog and have the user select the needed keys (not ideal) and present my own password dialog in place of the system's.