mmartinez
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
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