• 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: Kaelin Colclasure <email@hidden>
  • Date: Thu, 20 Nov 2003 07:13:44 -0800

You may also want to have a look at `man ssh-agent`.

-- Kaelin

On Nov 19, 2003, at 9:20 PM, Sherm Pendley wrote:

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

References: 
 >Using ssh with the NSTask class (From: Simone Manganelli <email@hidden>)
 >Re: Using ssh with the NSTask class (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Mailing list: General options
  • Next by Date: Palette window
  • Previous by thread: Re: Using ssh with the NSTask class
  • Next by thread: Using ssh with the NSTask class
  • Index(es):
    • Date
    • Thread