Re: SSH inside Objective C
Re: SSH inside Objective C
- Subject: Re: SSH inside Objective C
- From: Dave Camp <email@hidden>
- Date: Tue, 8 May 2007 11:40:14 -0600
For a pure Obj-C implementation, I would think you should be able to
launch ssh via an NSTask and attach a couple of NSPipes to it for
stdin and stdout. That said, Cocoa isn't that great at text parsing
(in my opinion), so if I were doing it I'd stick with normal posix
code for launching and manipulating the pipes (e.g. popen()).
Dave
On May 8, 2007, at 11:22 AM, Dalton Hamilton wrote:
Hello All -
I was wondering if there is such a thing as a framework or some
library that would make it easy for someone to use ssh to
communicate with a piece of network equipment. I've written lots
of socket() code that communicates directly to telnet daemons and
to smtp daemons -- pretty simple stuff -- just send and receive --
kinda like what Expect would do in an Expect script.
However, I now want to communicate with a device that does not have
telnet enabled and only supports ssh. The hard part is getting the
ssh connection established. I haven't tried this but I'm sure it
involves RSA keys etc. Can anyone give any advice on how to do
this without having to drop to a shell???
Thanks
Dalton Hamilton
Garner, NC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40criticalpath.com
This email sent to email@hidden
_______________________________________________
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