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 ...
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/
https://github.com/x2on/libssh2-for-iOS might help you