Jump to content


Photo

Help connecting to secure FTP server


  • Please log in to reply
1 reply to this topic

#1 mmartinez

mmartinez
  • Members
  • 1 posts

Posted 12 March 2007 - 05:58 PM

Hi, I'm having some difficulty connecting to a secure ftp server with vbscript. I'm using the following settings:
Dim obj, result

Set obj = CreateObject("sfFTPLib.FTPConnectionSTA")

obj.Host = "server.hostname.domain"
obj.Username = "username"
obj.Password = "password" ' with some odd characters
obj.Port = 22
obj.Protocol = 2
obj.DataProtection = 0
obj.LogFile = "Connect.log"

Logfile.Write("Connecting to server using secure ftp ...")
result = obj.Connect()
Logfile.Writeline("connected with result: " & result & " " & Err.Description)

The connect.log reports a 30s timeout and closes the connection. My other log file report error 4.

If I replace protocol 2 with protocol 1, I get a different error = 18 (trouble handshaking SSL/TLS).

(I successfully connect under Linux using sftp with the same username and password.)

Any ideas?

Michael

#2 eyebex

eyebex
  • Licensed User
  • 1860 posts
  • Gender:
    Male

Posted 12 March 2007 - 08:30 PM

The fact that you use port 22 and that you say you've done it successfully under Linux tell me that you probably mix up SFTP (which is part of SSH, just like SCP) with FTPS (which is FTP over SSL). SmartFTP only supports the latter currently.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users