SFTP Connection - WeOnlyDo Discussion board

SFTP Connection (wodSFTP / wodSFTP.NET / wodSFTPdll)

by kdcarlisle, Sunday, July 12, 2009, 18:36 (5400 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


Complete thread: