Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSH inside Objective C



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:
http://lists.apple.com/mailman/options/macnetworkprog/dave% 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: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >SSH inside Objective C (From: Dalton Hamilton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.