SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

TimeOut in Connect on iOS

Open TomQv opened this issue 1 year ago • 2 comments

I'm only receiving Timeout-Exception trying to connect to my ftp-server with iOS:

var client = new SftpClient("files.qvgps.com", “user”, “password");
client.Connect();
Renci.SshNet.Common.SshOperationTimeoutException: Connection failed to establish within 30000 milliseconds.
  at Renci.SshNet.Abstractions.SocketAbstraction.ConnectCore (System.Net.Sockets.Socket socket, System.Net.EndPoint remoteEndpoint, System.TimeSpan connectTimeout, System.Boolean ownsSocket) [0x000a4] in <f1d5e967bcbc48fcb33dd5c4b79edfbe>:0
  at Renci.SshNet.Abstractions.SocketAbstraction.Connect (System.Net.Sockets.Socket socket, System.Net.EndPoint remoteEndpoint, System.TimeSpan connectTimeout) [0x00000] in <f1d5e967bcbc48fcb33dd5c4b79edfbe>:0
  at Renci.SshNet.Connection.ConnectorBase.SocketConnect (System.Net.EndPoint endPoint, System.TimeSpan timeout) [0x0000e] in <f1d5e967bcbc48fcb33dd5c4b79edfbe>:0

With UWP, it works fine.

SSH.NET 2024.1.0 Visual Studio Community 2022 for Mac Version 17.6.12 (build 410) Xamarin.iOS Version: 16.4.0.23 Visual Studio Community

Are there maybe any additional steps required on iOS to use sftp?

TomQv avatar Aug 25 '24 17:08 TomQv