反向使用libssh2 iOS上的端口转发 [英] Reverse Port Forward using libssh2 on iOS

查看:894
本文介绍了反向使用libssh2 iOS上的端口转发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找使用libssh2的iOS向前反向端口的一些示例code。这里是一个紧密的例子:

I'm looking for some example code of a reverse port forward on iOS using libssh2. Here's a close example:

<一个href=\"http://stackoverflow.com/questions/1580750/example-$c$c-of-libssh2-being-used-for-port-forwarding\">Example被用来进行端口转发 libssh2的code

Example code of libssh2 being used for port forwarding

但我想它必须适合到iOS和Objective-C如果可能的话。直C是没关系。我警惕的插座和FD code,而宁愿一个比我盗号了一个强大的解决方案。我试过RTFMing libssh2了一段时间,但它最终被刚刚RTF code ...,我没有在我的C code做这个网络部分有足够的信心。

But I'd like it to be tailored to iOS and objective-C if possible. Straight C is fine too. I'm wary of the socket and FD code, and would rather have a robust solution than the one I'm hacking up. I've tried RTFMing libssh2 for a while, but it ends up being just RTF Code... and I'm not confident enough in my C code to do this networking part.

编辑:赏金SSH与在iOS 4.3端口转发工作实现(如的iPhone4,ipad2的),并不需要为 libssh2 具体

bounty for a working implementation of ssh with port forwarding on iOS 4.3 (e.g. iphone4, ipad2), doesn't need to be libssh2 in specific.

推荐答案

事实证明,这是相当简单的迁移腻子源的 http://www.chiark.greenend.org.uk/~sgtatham/putty/ 到iOS ...

As it turns out, it's fairly straightforward to migrate the putty source http://www.chiark.greenend.org.uk/~sgtatham/putty/ to ios ...

这篇关于反向使用libssh2 iOS上的端口转发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆