Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in .NET FTP by (220 points)
Been running edtFTPnet/Pro in a test environment for about 2 weeks now. Everything is smooth.

We are connecting to a 3rd party's test environment which has a different IP, username, and password than the production environment.

I started testing the connection to their production environment and am unable to connect.

    - Filezilla works.- edtFTPnet/Pro gives an error... see the code section for logging


The logging/testing was done with the FTP shell program though my .NET program gives the same IO error. Anything with *PROTECTED* is just me preventing company-specific information.

Any help on this would be greatly appreciated!

Thank you,
--Aaron

INFO [LicenseProperties] 15 Aug 2011 14:17:43.004 : Production license
DEBUG [SSLFTPClient] 15 Aug 2011 14:17:43.004 : Connecting to *PROTECTED*.com:22
DEBUG [SSLFTPControlSocket] 15 Aug 2011 14:17:43.004 : waitOnShutdownSSL=True
DEBUG [HostNameResolver] 15 Aug 2011 14:17:43.004 : Resolving *PROTECTED*.com
DEBUG [HostNameResolver] 15 Aug 2011 14:17:43.004 : Obtained 1 addresses
DEBUG [HostNameResolver] 15 Aug 2011 14:17:43.004 : IP address: *PROTECTED*
DEBUG [HostNameResolver] 15 Aug 2011 14:17:43.004 : *PROTECTED*.com resolved to *PROTECTED*
DEBUG [ExFTPControlSocket] 15 Aug 2011 14:17:43.004 : Connecting directly to ftp-server *PROTECTED*.com:22
INFO [SSLFTPSocket] 15 Aug 2011 14:17:43.004 : Connecting to *PROTECTED*:22 with timeout 60000 ms
DEBUG [FTPControlSocket] 15 Aug 2011 14:17:43.051 : Setting socket timeout=60000
ALL [SecureSocket] 15 Aug 2011 14:17:43.051 : SecureSocket timeout=60000
ALL [SecureSocket] 15 Aug 2011 14:17:43.051 : SecureSocket timeout=60000
INFO [FTPControlSocket] 15 Aug 2011 14:17:43.051 : Command encoding=System.Text.SBCSCodePageEncoding
DEBUG [ExFTPControlSocket] 15 Aug 2011 14:17:43.051 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=*PROTECTED*.com, controlPort=22, timeout=60000
DEBUG [FTPControlSocket] 15 Aug 2011 14:17:43.051 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 15 Aug 2011 14:17:43.114 : SSH-2.0-OpenSSH_4.3
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 : Socket.Receive() failed
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 : System.Net.Sockets.SocketException: 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
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 :    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 :    at OWhojlPIiiB0gReE1uP.Vy6Hs4PXltW9c63soCE.Receive(Byte[] , Int32 , Int32 , SocketFlags )
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 :    at W9hc21ImDTw4MZ4E1oe.lRbYqCIbobMLHiGEJpT.Receive(Byte[] , Int32 , Int32 , SocketFlags )
ERROR [SecureNetworkStream] 15 Aug 2011 14:18:43.628 :    at RePysBITcwY81ep47oa.FfUknPIN978J9Av2JAe.Read(Byte[] , Int32 , Int32 )
ERROR [FTPControlSocket] 15 Aug 2011 14:18:43.628 : Read failed ('' read so far)

4 Answers

0 votes
by (162k points)
You're connecting to the SSH port, 22, instead of the FTP port, 21, using the FTPSExplicit protocol. That won't work.

You need to set the protocol to FTPSExplicit and connect to port 21 (if you want FTPS), or set it to SFTP and connect to port 22 (if you want SFTP).
0 votes
by (220 points)
That was it. Thanks for the help! I had to set transfer type to SSH.

The debugging I posted was actually for the edtFTP shell, not my .NET code which threw the same error. Is there any way to set the edtFTP shell to work with explicit SSH?

Again, thanks for the help.
--Aaron
0 votes
by (162k points)
Yes:

set protocol = sftp
0 votes
by (220 points)
Perfect! Once again, thanks for the help on this.

Categories

...