tags:

views:

694

answers:

1

SSH is installed in NAS, Router is configured to forward the SSH port to NAS.

If anybody has done such thing before then just guide me How to send command over SSH from iphone ? is there any code available regarding the same ?

Thanks in advance ...

+5  A: 

Install an SSH client on you iPhone, e.g. pTerm. I choose this solution for sending the occasional command to an appliance.

There is a somewhat half baked recipe on compiling libssh2 for use on the iPhone at:

http://sites.google.com/site/olipion/cross-compilation/libssh2

Examples can be found on the libssh2 website

http://www.libssh2.org/examples/

Niels Castle
Hi Niels, Thanks. Is there any code available to send command over SSH from iphone? Thanks in advance. Is there any sample available for guidence?
Rambo
Niels just gave you a guide to compiling libssh, and some examples... and you ask him for guidance and examples...?
Jasarien
Thanks Niels for your response. It would help me a lot.
Rambo
The libssh2 ssh2_exec.c example shows you how to execute a command remotely. It is probably a good stating point.
Niels Castle
yes you r right Niels. Its really helpful to me. Once again Thanks a lot :-)
Rambo
Good luck, it sounds like a neat iPhone project!
Niels Castle