Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (280 points)
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?

2 Answers

0 votes
by (162k points)
Please create a log file at the All level of logging and email to support at enterprisedt dot com
0 votes
by (162k points)
The first thing that comes to mind is the port you are connecting to, 10022.

The standard SSH port is 22 - are you sure you are connecting to the correct port?

Categories

...