如何从iphone通过SSH发送命令?任何编码帮助或样品可用吗?

时间:2022-02-19 01:40:36

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

SSH安装在NAS中,Router配置为将SSH端口转发到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 ?

如果有人在此之前做过这样的事情,那么请指导我如何从iphone通过SSH发送命令?是否有相同的代码?

Thanks in advance ...

提前致谢 ...

2 个解决方案

#1


5  

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

在您的iPhone上安装SSH客户端,例如pTerm。我选择此解决方案将偶尔的命令发送到设备。

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

在编译libssh2时,有一半有用的配方可以在iPhone上使用:

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

Examples can be found on the libssh2 website

可以在libssh2网站上找到示例

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

#2


1  

https://github.com/x2on/libssh2-for-iOS might help you

https://github.com/x2on/libssh2-for-iOS可能对您有所帮助

#1


5  

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

在您的iPhone上安装SSH客户端,例如pTerm。我选择此解决方案将偶尔的命令发送到设备。

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

在编译libssh2时,有一半有用的配方可以在iPhone上使用:

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

Examples can be found on the libssh2 website

可以在libssh2网站上找到示例

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

#2


1  

https://github.com/x2on/libssh2-for-iOS might help you

https://github.com/x2on/libssh2-for-iOS可能对您有所帮助