This is my error:
System.Net.Sockets.SocketException was caught
Message="A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xxx.xxx.xxx.xx:10022"
I created a key pair using PuttyGen and sent the public key to my partner for them to install in their mailbox.
I have the following code (more or less) for the connection:
sftpConnection.ServerValidation = SecureFTPServerValidationType.None;
sftpConnection.ServerPort = port;
sftpConnection.ClientPrivateKeyFile = "C:\\XXX\\keystore\\protected\\mykey_rsa.ppk";
sftpConnection.AuthenticationMethod = EnterpriseDT.Net.Ssh.AuthenticationType.PublicKey;
sftpConnection.TransferType = FTPTransferType.ASCII;
sftpConnection.ConnectMode = FTPConnectMode.PASV;
Any ideas what I may have wrong/ ideas for debugging this?