Download from a FTP-SSL

Post Reply
florian
Newbie
Posts: 2
Joined: Mon Nov 13, 2017 10:43 pm

Download from a FTP-SSL

Post by florian »

Hello,

I would like to download files from a "FTP-SSL AUTH-TLS" (see screenshot).
However I don't how to do that within Switch, could you please explain to me what I need to do - connection have to use a certificate.

sreen.png
sreen.png (94.58 KiB) Viewed 6549 times
[/size]
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Download from a FTP-SSL

Post by gabrielp »

Search the forums for "ftps". AFAIK, Switch supports sftp but not ftps, but others have pointed out workarounds.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
florian
Newbie
Posts: 2
Joined: Mon Nov 13, 2017 10:43 pm

Re: Download from a FTP-SSL

Post by florian »

ok, thanks for your replie
sander
Advanced member
Posts: 274
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Download from a FTP-SSL

Post by sander »

I do this with WinSCP.

Example batch, but can be done with PowerShell too;

Code: Select all

@echo off

"d:\Scripts\WinSCP\WinSCP.com" ^
  /log="D:\Flows\Incoming\ftps.log" /ini=nul ^
  /command ^
    "open ftps://username:password@ftps.lorem.com" ^
    "get -delete /TESTNAVOUT/* D:\Flows\Incoming\xml\ -filemask=*.xml" ^
    "synchronize local D:\Flows\Incoming\pdf /TFB/TESTARTWORK/ -filemask=*.pdf" ^
    "synchronize local D:\Flows\Incoming\jpg /TFB/TESTARTWORK/ -filemask=*.jpg" ^
    "exit"

set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)

exit /b %WINSCP_RESULT%
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: Download from a FTP-SSL

Post by abonsey »

Does Switch still not support FTPS?? I run the latest version of Switch.
Has anybody got it to work and have examples that could help me out as we've never set this up before.

TIA
Andrew
Post Reply