Re: Client ssh
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
References: | |
| >Client ssh (From: Valerio Ferrucci <email@hidden>) |