On Wed, Jun 25, 2008 at 10:01 PM, Kevin Ferguson <email@hidden> wrote:
> There doesn't appear to
> be any way to make my application wait for the password prompt, either.
If stdin is not a tty (which is indeed the case running from an
NSTask) and the environment variables DISPLAY and SSH_ASKPASS are set,
ssh will execute the program specified in SSH_ASKPASS and take its
output as the password. For an example of how this can be integrated
into a Cocoa program, see SSHKeychain.
SSHKeychain is in fact a rather good Cocoa ssh-agent manager, but if
you're targeting Leopard, there's one already built in. This is
definitely the best way to authenticate yourself in ssh, and you
should use it if possible (for example, if users of your app will be
connecting to a server you control, you could send them auth keys as
part of a registration process).
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden