Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in General by (220 points)
Hi there,

We're getting a SFTPException: NotSSHServer on a specific server thats running our application with your library and I'm wondering if you can give me any ideas as to what could be wrong. We are using edtFTPnetPRO version 8.3.0.20.

This error only seems to happen when connecting from this server. Running the same application, connecting to the same server with the same credentials from any other PC/server seems to work.

Any idea what could be the issue?

Thanks very much!
Matt

Here's the log (with host info *obfuscated*):
INFO [LicenseProperties] 7 Mar 2013 17:24:59.976 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 7 Mar 2013 17:24:59.976 : Production license
DEBUG [FTPConnection] 7 Mar 2013 17:24:59.976 : Set LocalDirectory='C:\Users\admin_cms\Desktop\SFtpTester'
DEBUG [SecureFTPConnection] 7 Mar 2013 17:24:59.976 : Set LocalDirectory to C:\Users\admin_cms\Desktop\SFtpTester
INFO [LicenseProperties] 7 Mar 2013 17:24:59.976 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 7 Mar 2013 17:24:59.976 : Production license
DEBUG [SSHSCPClient] 7 Mar 2013 17:24:59.976 : Setting up fallback kbi prompt based on supplied password
DEBUG [HostNameResolver] 7 Mar 2013 17:25:00.038 : Resolving sftp.NOTREAL.com
DEBUG [HostNameResolver] 7 Mar 2013 17:25:00.038 : Obtained 1 addresses
DEBUG [HostNameResolver] 7 Mar 2013 17:25:00.038 : IP address: 123.45.67.891
DEBUG [HostNameResolver] 7 Mar 2013 17:25:00.038 : sftp.NOTREAL.com resolved to 123.45.67.891
DEBUG [SSHSCPClient] 7 Mar 2013 17:25:00.038 : Connecting directly to SFTP server 123.45.67.891:22
INFO [BaseSocket] 7 Mar 2013 17:25:00.038 : Connecting to 123.45.67.891:22 with timeout 120000 ms
DEBUG [BaseSocket] 7 Mar 2013 17:25:00.116 : Successfully connected to 123.45.67.891:22
DEBUG [SSHSCPClient] 7 Mar 2013 17:25:00.116 : Connected successfully to SFTP server 123.45.67.891:22
DEBUG [SSHConnection] 7 Mar 2013 17:25:00.116 : Beginning protocol negotiation
DEBUG [PlainSocket] 7 Mar 2013 17:25:00.163 : RepeatCallback received 0 bytes
ERROR [SSHFTPClient] 7 Mar 2013 17:25:00.163 : Failed to connect - closing connection
ERROR [SSHFTPClient] 7 Mar 2013 17:25:00.163 : EnterpriseDT.Net.Ftp.Ssh.SFTPException: NotSSHServer
ERROR [SSHFTPClient] 7 Mar 2013 17:25:00.163 : at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Connect()

4 Answers

0 votes
by (162k points)
Given that you know it is an SFTP server, the best explanation seems that the IP address resolved from the hostname is wrong. Is the IP address correct?

The other possibility is that a firewall on this machine is interfering somehow.

What happens when you use a different SFTP client like Filezilla to connect?
0 votes
by (220 points)
The IP address is correct. Its not a server I can access but I'll ask them to get another SFTP client on there and see if it works.

Thanks for the quick response!
Matt
0 votes
by (180 points)
Hi,

I'm having exactly the same error.
I've tried to connect with a sFTP client (Filezilla) and it works.
When I try to connect with enterprisedt library I get an exception "NotSSHServer".

I'm using edtFTPnetPRO version 8.3.0.20

Any idea what could be the issue?
0 votes
by (180 points)
Forget this... I was trying to connect to a ftps server, not a sftp server.
The message "NotSSHServer" could be more specific anyway...

Kind regards,

Joao

Categories

...