Discuss the FTP protocol, secure FTP, FTP over SSH and FTP over SSL.
no avatar
User

mtrichards26

Posts

4

Joined

Fri Jan 14, 2011 5:36 am

NotSSHServer error when connecting to SFTP Server

by mtrichards26 » Fri Mar 08, 2013 9:24 am

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()
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: NotSSHServer error when connecting to SFTP Server

by support2 » Fri Mar 08, 2013 9:45 am

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?
no avatar
User

mtrichards26

Posts

4

Joined

Fri Jan 14, 2011 5:36 am

by mtrichards26 » Fri Mar 08, 2013 9:51 am

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
no avatar
User

jaguas

Posts

2

Joined

Wed Sep 24, 2014 9:18 pm

Re: NotSSHServer error when connecting to SFTP Server

by jaguas » Wed Sep 24, 2014 9:23 pm

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?
no avatar
User

jaguas

Posts

2

Joined

Wed Sep 24, 2014 9:18 pm

Re: NotSSHServer error when connecting to SFTP Server

by jaguas » Wed Sep 24, 2014 11:22 pm

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

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron