• 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: Client ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Client ssh


  • Subject: Re: Client ssh
  • From: Dominic Blais <email@hidden>
  • Date: Wed, 31 May 2006 08:09:44 -0700


On May 31, 2006, at 3:11 AM, Valerio Ferrucci wrote:

Hi,
I have to develop a Cocoa app that communicates with a server (Linux), via ssh, i.e. a client ssh.


Can someone point me to some resources on how to do this?

Thanks

Firstly, I'd get familiar with the options that ssh has by looking at its manual page. There are quite a few ways you can use ssh to communicate wth an external server. Keep in mind that it will be far easier if you do key authentication or host-based authentication instead of password authentication. Assuming you have set up authentication, you can easily run commands on the server by including them as the last argument to ssh. E.g.:


[[NSTask launchedTaskWithLaunchPath:@"/usr/bin/ssh" arguments: [NSArray arrayWithObjects: @"www.somesite.net", @"ls", nil]] waitUntilExit];

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


  • Follow-Ups:
    • Re: Client ssh
      • From: "Shawn Erickson" <email@hidden>
References: 
 >Client ssh (From: Valerio Ferrucci <email@hidden>)

  • Prev by Date: Re: About CFURLGetFSRef
  • Next by Date: Binding images in NSPopUpButton
  • Previous by thread: Re: Client ssh
  • Next by thread: Re: Client ssh
  • Index(es):
    • Date
    • Thread