How can achieve Dynamic Forwarding(SOCK) in iOS? - libssh2 not supported what I use as alternative?

160 views Asked by At

I want to accept SOCKS5 clients like "ssh -D" does. Same like in Termius app(https://apps.apple.com/in/app/termius-ssh-sftp-client/id1176074088?mt=12) there is option to add Proxy Details(host, username & Pass). Then it will establish connection to the client through Proxy.

enter image description here

Let me know if any more details required.

1

There are 1 answers

3
Faisal Memon On

The Termius app does appear to leverage a bunch of Open Source Libraries:

These provide an OpenSSH library and a Objective-C wrapper respectively.

The -D option you are interested in I believe is known as port forwarding. There is a document to help at a code level with this

If you combine the above into your own app I think you should be able to achieve the desired functionality.