Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: SSH Wrapper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSH Wrapper



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).

Hamish
_______________________________________________

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

References: 
 >SSH Wrapper (From: Kevin Ferguson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.