• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ssh-tunnel, remote controlling (and stuff)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh-tunnel, remote controlling (and stuff)


  • Subject: Re: ssh-tunnel, remote controlling (and stuff)
  • From: "Joe Roback" <email@hidden>
  • Date: Tue, 6 Mar 2007 16:05:19 -0700

you can also use the SSH_ASKPASS environmental variable and have a
small helper app bundled with my app which sends the NSTask-ssh
process the password. man ssh for more information.

The upside is is you don't have to mess with pseudo terminals.

the downside you need to have your app and the helper app be able to
communicate with other, i.e. your app needs to send the helper app the
password string.

Also there is some issue if your application has to wait for the
tunnel to be completed. you need to send a NSNotification or
something, since you cannot block on your NSTask.

This solution also works for both password authentication and ssh-keys

joe

On 3/6/07, Daryl Thachuk <email@hidden> wrote:

We did something similar for FileScope but we used pseudo terminals. The solution works for both password authentication and ssh-keys.

Regards

Daryl




On 6-Mar-07, at 3:29 PM, arri wrote:

> thanks phil,
>
> it's a bit overkill for to implement a fullblown ssh-client,
> only for creating a tunnel, so i was thinking of just using NSTask
> with OSX's built-in ssh client.
>
> creating the tunnel the tunnel using NSTask works pretty straight
> forward,
> but right now i'm struggling with the authentication process.
>
> for testing purposes i was using ssh-keys, but in the final
> implementation
> the software will be running on arbitrary machines, installed by
> random
> people on random locations. those machine will break, and need to
> be replaced
> at some point etc... so ssh-keys are no option.
>
> i can do an interactive ssh-login with NSTask, but where do i store
> the password?
> is there a way to safely include this (encrypted?) in the binary?
>
> does anyone have experience with / a solution for a scenario like
> this?
>
> thanks,
> arri
>
>
> On Feb 26, 2007, at 07:14 21, Philip Q wrote:
>
>> On 26/02/07, arri <email@hidden> wrote:
>>> i have some experience with creating ssh-tunnels on linux and osx,
>>> but i was wondering if anyone could point me in the right direction
>>> for implementing this inside a cocoa-app.
>>>
>>
>> There's nothing built-in, a quick Google search for 'ssh library'
>> revealed a few C and C++ libraries that let you programmatically
>> access ssh functionality.
>>
>> -Phil
> _______________________________________________

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: ssh-tunnel, remote controlling (and stuff) (From: arri <email@hidden>)
 >Re: ssh-tunnel, remote controlling (and stuff) (From: Daryl Thachuk <email@hidden>)

  • Prev by Date: Re: detect CGDisplayCapture
  • Next by Date: Re: question about custom cursor
  • Previous by thread: Re: ssh-tunnel, remote controlling (and stuff)
  • Next by thread: detect CGDisplayCapture
  • Index(es):
    • Date
    • Thread