9

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

Example code of libssh2 being used for port forwarding

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.

EDIT: 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.

4

1 回答 1

1

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

于 2011-09-25T00:32:22.223 回答