问题描述
在NAS中安装了SSH,将路由器配置为将SSH端口转发到NAS.
SSH is installed in NAS, Router is configured to forward the SSH port to NAS.
如果有人以前做过这样的事情,那就指导我如何从iPhone通过SSH发送命令?是否有关于同一代码的可用代码?
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 ?
预先感谢...
推荐答案
在iPhone上安装SSH客户端,例如pTerm.我选择这种解决方案将偶然的命令发送到设备.
Install an SSH client on you iPhone, e.g. pTerm. I choose this solution for sending the occasional command to an appliance.
关于编译libssh2以便在iPhone上使用的方法,有一些未完成的地方:
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
可以在libssh2网站上找到示例
Examples can be found on the libssh2 website
> http://www.libssh2.org/examples/
这篇关于如何通过SSH从iPhone发送命令?有任何编码帮助或样品可用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!