Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Use it with Xamarin.iOS

$
0
0
Hi,

I'm trying to use the SSHNet library (Renci SSH) from codeplex on my Xamarin iOS app. The SSH auth and the tunneling is working fine on the simulator, but I can't make it work on the real devices.

Did someone used this library with Xamarin.iOS?

I already added the "Personal VPN" entlitement property (with I don't really know if its truly necessary). The device log says the shh auth works, but when I try to connect http://127.0.0.1:port/rest_off_the_url , I get a TimeOut.

Here is my code
SshClient p_sshClient;
ForwardedPortLocal p_forwardedPortLocal;
p_sshClient = new SshClient(VPN_ADDRESS, user, password);
p_sshClient.Connect();

p_forwardedPortLocal = new ForwardedPortLocal(LOCAL_HOST, localPort, connectionURL, port);
p_sshClient.AddForwardedPort(p_forwardedPortLocal);
p_forwardedPortLocal.Start();
This works fine apparently. I can even see the server logs success messages.

But then, this get a TimeOutException
HttpWebRequest request = (HttpWebRequest) WebRequest.Create (localhost_url);
WebResponse response = request.GetResponse ();
Thanks!

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>