FTP with SSL, Clear Command Channel

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

FTP with SSL, Clear Command Channel

Post by kevingauvin » Wed Feb 04, 2009 4:56 pm

HI,

I've got a site that I want to FTP to using the FTP Library. The Admin on the remote server say that I need to do a "Clear command channel" in order to get through his firewall. I don't have a clue as to what he's talking about. Is this even possible to do with smartftp?

Thanks,
kevin

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

Re: FTP with SSL, Clear Command Channel

Post by mb » Wed Feb 04, 2009 10:43 pm

Yes of course.

FTPLib:
Set the CommandProtection property (of the FTPConnection) to ftpDataProtectionClear = 1

SmartFTP:
Just go to the Favorite properties. Then go to the Connection->SSL dialog and set the control connection to Clear.

Regards,
Mat
Last edited by mb on Thu Feb 05, 2009 6:10 pm, edited 1 time in total.

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: FTP with SSL, Clear Command Channel

Post by kevingauvin » Thu Feb 05, 2009 2:58 pm

Thanks,

I guess I still don't fully understand how to write the "ftpDataProtectionClear = 1". Do you have some sample code that I could look at. Here's what I've got so far but I know "objFTP.ftpDataProtectionClear = 1" is not right.


Dim objFTP
Set objFTP = CreateObject("sfFTPLib.FTPConnectionSTA")


objFTP.Host = "xxx.xxx.xxx.xxx"
objFTP.Username = "abcd1243"
objFTP.Password = "zxcv9876"
objFTP.ftpDataProtectionClear = 1
objFTP.Port = 21
path= "/to_xpn"


objFTP.Connect()

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

Re: FTP with SSL, Clear Command Channel

Post by mb » Thu Feb 05, 2009 4:12 pm

You forgot to set the Protocol property to SSLExplicit.

Regards,
Mat

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: FTP with SSL, Clear Command Channel

Post by kevingauvin » Thu Feb 05, 2009 5:18 pm

Thanks for all of the help Mat.

I added what you suggested and I am getting an error saying "Object doesn't support this property or method: 'ftpDataProtectionClear' ", It's failing on this line of the script "objFTP.ftpDataProtectionClear = 1" .

Any ideas?

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

Re: FTP with SSL, Clear Command Channel

Post by mb » Thu Feb 05, 2009 6:11 pm

CommandProtection is the name of the property. ftpDataProtectionClear is the name of the constant. So the correct line is:
objFTP.CommandProtection = 1
Last edited by mb on Thu Feb 05, 2009 6:12 pm, edited 1 time in total.

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: FTP with SSL, Clear Command Channel

Post by kevingauvin » Fri Feb 06, 2009 1:01 pm

Same kind of error. I should mention that I'm using the FTPLib and writing the code as VB script.

I am getting an error saying "Object doesn't support this property or method: 'CommandProtection' , It's failing on this line of the script "objFTP.CommandProtection = 1" .

Thanks for taking the time to help me with this problem

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

Re: FTP with SSL, Clear Command Channel

Post by mb » Fri Feb 06, 2009 9:30 pm

Works here as expected. Make sure that you have the latest version of the FTP Library installed:
https://www.smartftp.com/get/SFTPFTPLib.exe

Regards,
Mat

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: FTP with SSL, Clear Command Channel

Post by kevingauvin » Mon Feb 09, 2009 6:19 pm

Thanks,

Yes, the most current version does work on my pc. I was able to get my script to run. now I'll just have to sort out why I'm getting a return code of 17 after I execute the connect.

I currently have a license for FTPLib and I am running version 1.5.9.16 on our production server. Do you know if the new version of the dll will allow me to use the same license or do I require an upgrade.

Thanks,
Kevin

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

Re: FTP with SSL, Clear Command Channel

Post by mb » Mon Feb 09, 2009 6:27 pm

Dear Kevin ..

Please contact us at sales@smartftp.com and provide your license key id.

Regards,
Mat

Post Reply