Problem with SFTP

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Problem with SFTP

Post by m.gunesch » Tue Mar 31, 2009 6:57 am

We have encountered again problems with SFTP:
When I try to connect to a server, the ftp library crashes at "If objFTP.Connect = sfFTPLib.enumError.ftpErrorSuccess Then"

You can try it with your VB6 sample project and following server:

objFTP.Host = "ftpd.ils-consult.fr"
objFTP.Port = 22
objFTP.Username = "smartftp"
objFTP.Password = "smartftp"
objFTP.LogFile = "c:\sftp.log"

I really need some help, because at the moment it's not possible to use SFTP with SmartFTP-Library.

Regards,
Markus

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Problem with SFTP

Post by mb » Tue Mar 31, 2009 10:43 am

I will take a look at it. In the meanwhile try to set the objFTP.UseMessageLoop property to true

Regards,
Mat

m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Re: Problem with SFTP

Post by m.gunesch » Tue Mar 31, 2009 11:25 am

No change if I set objFTP.UseMessageLoop property to true ...

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Problem with SFTP

Post by mb » Tue Mar 31, 2009 11:33 am

Are the VBScript examples (Scripts\Simple.wsf) working for you?

m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Re: Problem with SFTP

Post by m.gunesch » Tue Mar 31, 2009 1:31 pm

No. Almost the same error msg except it's WScript.exe instead of VB6.exe

Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\WINDOWS\System32\WScript.exe

This application has requestet the Runtime to terminate it in an unusual way. Please contact the application's support team for more information

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Problem with SFTP

Post by mb » Tue Mar 31, 2009 8:56 pm

What operating system are you using?

Can you to reproduce the problem on a fresh installation of Windows?

Regards,
Mat

m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Re: Problem with SFTP

Post by m.gunesch » Wed Apr 01, 2009 7:24 am

Windows XP Professional SP3.

I have tried it with a new XP installation, same error with the script examples.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Problem with SFTP

Post by mb » Wed Apr 01, 2009 1:18 pm

I couldn't not find any errors with the script nor the ftp library. They both work as expected. Do you have the latest version of the FTP Library: https://www.smartftp.com/ftplib
Did you register the sfFTPLib.dll (regsvr32.exe sfFTPLib.dll)?

Regards,
Mat

m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Re: Problem with SFTP

Post by m.gunesch » Thu Apr 02, 2009 7:46 am

Yes, I have!

[20090402 07:22:39] SmartFTP FTP Library v1.5.17.28
[20090402 07:22:39] Resolving host name "ftpd.ils-consult.fr"
[20090402 07:22:39] Connecting to 92.103.148.120 Port: 22
[20090402 07:22:39] SSH-2.0-OpenSSH_4.7
[20090402 07:22:39] Starting SSH session. Remote Id: "SSH-2.0-OpenSSH_4.7"
[20090402 07:22:39] SSH protocol version reply. Client Id: "SSH-2.0-SmartFTP"
[20090402 07:22:41] Computing session key.
[20090402 07:22:41] Key Exchange Algorithm: diffie-hellman-group-exchange-sha256
[20090402 07:22:41] Key exchange completed.
[20090402 07:22:41] Host Key Algorithm: ssh-rsa
[20090402 07:22:41] Client to Server Encryption: aes128-ctr
[20090402 07:22:41] Server to Client Encryption: aes128-ctr
[20090402 07:22:41] Session MAC: hmac-sha1
[20090402 07:22:41] Client to Server Compression: zlib@openssh.com
[20090402 07:22:41] Server to Client Compression: zlib@openssh.com
[20090402 07:22:41] Authentication request. Method: "none"
[20090402 07:22:41] Server supported authentications: publickey,password,keyboard-interactive
[20090402 07:22:41] Authentication request. Method: "password"
[20090402 07:22:42] User authentication successful.

That's the last message which can be found in the log file.

Did you try the VB6-Sample with the parameters I have posted?

objFTP.Host = "ftpd.ils-consult.fr"
objFTP.Port = 22
objFTP.Username = "smartftp"
objFTP.Password = "smartftp"
objFTP.LogFile = "c:\sftp.log"

I have tried it on different PCs, always the same problem with "If objFTP.Connect = sfFTPLib.enumError.ftpErrorSuccess Then"

The problem doesn't occur if I use a nonexistent username, then I'll get an error ftpErrorConnect = 25L

objFTP.Host = "ftpd.ils-consult.fr"
objFTP.Port = 22
objFTP.Username = "abcdefg"
objFTP.Password = "......."
objFTP.LogFile = "c:\sftp.log"

Regards,
Markus

m.gunesch
Posts: 16
Joined: Thu Feb 05, 2009 10:24 am

Re: Problem with SFTP

Post by m.gunesch » Thu Apr 02, 2009 1:18 pm

I have installed the latest SmartFTP-Client on 5 PCs and it's impossible to connect to ftpd.ils-consult.fr!
Always error message and crash.

Post Reply