• 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_ASKPASS does not allow to use NSConnection?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSH_ASKPASS does not allow to use NSConnection?!


  • Subject: Re: SSH_ASKPASS does not allow to use NSConnection?!
  • From: "[ChungwaSoft] Fabian Jäger" <email@hidden>
  • Date: Mon, 03 Oct 2011 08:01:25 +0200

I am just guessing: Maybe it has something to do with the tools environment variables? Is there anything required by NSConnection to work properly?

Fabian

Am 03.10.2011 um 07:46 schrieb [ChungwaSoft] Fabian Jäger:

Dear Experts,
I am trying to use a special SSH_ASKPASS tool based on MacOS X Cocoa NSConnection for RPC. Somehow the RPC does not work when the ASKPASS tool is started by SSH. If I start the same tool itself via the command line, it does connect to the RPC service flawlessly.

I use the following line of code in the client. It returns nil if SSH runs the tool on demand (for reading the password). If I run the tool separately via the command line, it successfully connects to the server-side of the NSConnection.

NSConnection *aCon = [NSConnection connectionWithRegisteredName:CSAuthenticationServer host:nil];

I don't know if this is relevant in this case, but but the SSH executable is started by a daemon, which was before started via launchd.

Is there anybody with an explanation? What is the difference between starting the tool itself and letting SSH start the tool on demand regarding availability of NSConnection/RPC?

Best regards,
Fabian
smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SSH_ASKPASS does not allow to use NSConnection?!
      • From: "[ChungwaSoft] Fabian Jäger" <email@hidden>
References: 
 >SSH_ASKPASS does not allow to use NSConnection?! (From: "[ChungwaSoft] Fabian Jäger" <email@hidden>)

  • Prev by Date: SSH_ASKPASS does not allow to use NSConnection?!
  • Next by Date: Re: SSH_ASKPASS does not allow to use NSConnection?!
  • Previous by thread: SSH_ASKPASS does not allow to use NSConnection?!
  • Next by thread: Re: SSH_ASKPASS does not allow to use NSConnection?!
  • Index(es):
    • Date
    • Thread