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

SSH_ASKPASS does not allow to use NSConnection?!


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

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

Attachment: 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>
  • Next by Date: Re: SSH_ASKPASS does not allow to use NSConnection?!
  • Next by thread: Re: SSH_ASKPASS does not allow to use NSConnection?!
  • Index(es):
    • Date
    • Thread