Unable to est SFTP Connection

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
cfay
Posts: 4
Joined: Tue Feb 09, 2010 9:16 pm

Unable to est SFTP Connection

Post by cfay » Wed Feb 10, 2010 1:17 pm

Using VBScript Sample I am able to establish a SSH connection but when it tries the CreateSFTPConnection it produces a Object required: error. i have traced the line in the Sample to

Dim objSFTP
Set objSFTP = objSFTP.CreateSFTPConnection()

Log file is
[20100210 13:15:36] SmartFTP FTP Library 2.0.47.1
[20100210 13:15:36] Resolving host name "69.84.134.29"
[20100210 13:15:36] Connecting to 69.84.134.29 Port: 33
[20100210 13:15:36] SSH-2.0-1.36_sshlib GlobalSCAPE
[20100210 13:15:36] Starting SSH session. Remote Id: "SSH-2.0-1.36_sshlib GlobalSCAPE"
[20100210 13:15:36] SSH protocol version reply. Client Id: "SSH-2.0-SmartFTP"
[20100210 13:15:36] Key Exchange Algorithm: diffie-hellman-group-exchange-sha1
[20100210 13:15:36] Key exchange completed.
[20100210 13:15:36] Host Key Algorithm: ssh-dss
[20100210 13:15:36] Client to Server Encryption: aes128-cbc
[20100210 13:15:36] Server to Client Encryption: aes128-cbc
[20100210 13:15:36] Session MAC: hmac-sha1
[20100210 13:15:36] Client to Server Compression: zlib
[20100210 13:15:36] Server to Client Compression: zlib
[20100210 13:15:36] Requesting service "ssh-userauth".
[20100210 13:15:37] RTT: 194.991 ms
[20100210 13:15:37] Authentication request. Method: "password"
[20100210 13:15:37] User authentication successful.
[20100210 13:15:37] SSH session established.
[20100210 13:15:37] Connected to 69.84.134.29.
[20100210 13:15:37] Detected Server Software: Unknown

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

Re: Unable to est SFTP Connection

Post by mb » Thu Feb 11, 2010 6:32 am

I will take a look at it asap. Thanks for reporting.

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

Re: Unable to est SFTP Connection

Post by mb » Sun Feb 14, 2010 9:52 am

Please replace:
Dim objSFTP
Set objSFTP = objSFTP.CreateSFTPConnection()


with:
Dim objSFTP
Set objSFTP = obj.CreateSFTPConnection()

cfay
Posts: 4
Joined: Tue Feb 09, 2010 9:16 pm

Re: Unable to est SFTP Connection

Post by cfay » Mon Feb 15, 2010 2:59 pm

That worked. Probably should have figured that out myself actually. Thank you.

Post Reply