Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH2 library for ios

Is there any quality SSH2 library for ios?

For java there's a library called jsch (http://www.jcraft.com/jsch/) that does a great job at wrapping ssh2. The one bit of functionality that I'm most interested in is the "Reverse Port Forward" method:

session.setPortForwardingR(remote_port, host, local_port);

I found one objective-c lib from http://www.chilkatsoft.com/ssh-sftp-objc.asp, but it's not free and doesn't seem to be at a high level of quality. Should I just attempt to port the C version of openssh?

Also, if porting openssh is the best option, is there any open source project that is currently doing this?

like image 519
Ralphleon Avatar asked Jul 22 '11 17:07

Ralphleon


2 Answers

https://github.com/Lejdborg/NMSSH - https://github.com/x2on/libssh2-for-iOS

like image 93
crewshin Avatar answered Oct 18 '22 19:10

crewshin


I might consider checking out libssh. At first glance it looks like an appealing option for C. It can probably be compiled for iPhone with a bit of effort.

like image 37
Alex Nichol Avatar answered Oct 18 '22 20:10

Alex Nichol