On Dec 13, 2008, at 5:51 PM, James W. Walker wrote:

I'm using NSTask to run Mercurial, which internally uses ssh to communicate with a server. It works when there is no pass phrase on the private key, but what if there is one? I've heard that Leopard has a built-in ssh-agent that integrates with the Keychain, but I don't understand how to take advantage of that. Any clues?

Never mind, I figured it out myself. It's about environment variables. Normally, NSTask copies the host environment to the task, but I was using setEnvironment. To fix it, I needed to make a make a mutable copy of the current environment dictionary, add to that, and then set it in the task.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to