• 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: Using ssh with the NSTask class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using ssh with the NSTask class


  • Subject: Re: Using ssh with the NSTask class
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 20 Nov 2003 00:20:08 -0500

On Nov 19, 2003, at 11:46 PM, Simone Manganelli wrote:

Does anyone know how to get output from an ssh session using an NSTask? The problem is that a password is always required to get onto the remote server, and I'm not sure what the best way is to go about entering the password (actually, I don't know any way) if I'm using an NSTask class to launch the ssh session

If ssh isn't connected to a terminal, and the SSH_ASKPASS environment is set to the full path to an app, then ssh runs that app to obtain the user name & password instead of prompting for it on stdout and reading it from stdin.

Check out SSHPassKey for a great example.

sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using ssh with the NSTask class
      • From: Kaelin Colclasure <email@hidden>
References: 
 >Using ssh with the NSTask class (From: Simone Manganelli <email@hidden>)

  • Prev by Date: Using ssh with the NSTask class
  • Next by Date: Re: 10.3 feature questions: Search, Split buttons?
  • Previous by thread: Using ssh with the NSTask class
  • Next by thread: Re: Using ssh with the NSTask class
  • Index(es):
    • Date
    • Thread