SFTP Connection - WeOnlyDo Discussion board

SFTP Connection (wodSFTP / wodSFTP.NET / wodSFTPdll)

by kdcarlisle, Sunday, July 12, 2009, 18:36 (5614 days ago)

Occasionally I get the following error when connecting to our client's ftp server (over ssh).

Server identification string too long (more than 1024 bytes, possibly invalid)

I read the other post about this and performed the telnet operation and received the following.

SSH-1.99-OpenSSH_3.5p1

When I connect (via FileZilla) I get the following.

11:30:48 Status: Connecting to <client-ip>...
11:30:48 Response: fzSftp started
11:30:48 Command: open username@client-ip 22
11:30:48 Command: Pass: ********
11:30:48 Status: Connected to <client-ip>
11:30:49 Status: Retrieving directory listing...
11:30:49 Command: pwd
11:30:49 Response: Current directory is: /ftphome/gms
11:30:49 Command: ls
11:30:49 Status: Listing directory /ftphome/gms
11:30:49 Status: Calculating timezone offset of server...
11:30:49 Command: mtime .bash_history
11:30:49 Response: 1243601950
11:30:49 Status: Timezone offsets: Server: -14400 seconds. Local: -18000 seconds. Difference: -3600 seconds.
11:30:49 Status: Directory listing successful

Currently we connect (over ssh) using a user-name and password. We do have a public/private key-pair but are not using it at this time.

I went back and checked our code and found that we do not set the .Port property. Does that need to be manually set or will it set it when the .Protocol = Protocols.SFTP is set?

Thus far this has only happened a couple of times, but I'd like to head it off if possible.

Kent

Re: SFTP Connection

by woddrazen, Sunday, July 12, 2009, 19:13 (5614 days ago) @ kdcarlisle

Kent,


Can we maybe connect there and duplicate your problem?

You can send your private information to techsupport@weonlydo.com

Also you don't need to set Port Property because it's already set to default SFTP port 22.


Drazen

Re: SFTP Connection

by kdcarlisle, Sunday, July 12, 2009, 19:46 (5614 days ago) @ woddrazen

Drazen,

I'm gonna say probably not. It is an ftp server at one of our client's. I'll ask my boss when he returns tomorrow, but I wouldn't count on it.

Is there anything else that I can do/try in the mean time?

Kent

Re: SFTP Connection

by woddrazen, Sunday, July 12, 2009, 22:57 (5614 days ago) @ kdcarlisle

Kent,


We will need at least Hostname of that server.

Can you please try to connect to that server using FTP Voyager for example and SFTP protocol. Does it work?


Drazen

Re: SFTP Connection

by kdcarlisle, Monday, July 13, 2009, 16:50 (5613 days ago) @ woddrazen

Drazen,

I have sent the ip of the client server via email to you techsupport address. Here is a little more information.

Thus far we have only had 3 instances with this issue. They occurred on:

07/03/2009 06:30 PM
07/05/2009 06:00 AM
07/11/2009 11:30 PM

Currently we have four clients that we connect to over ssh. We have had no issues with the other three. I have used telnet to get their initial message. They are:

SSH-2.0-1.36_sshlib GlobalSCAPE
SSH-2.0-SSHD
SSH-1.99-OpenSSH_4.5

Let me know if you need anything else.

Kent