SFTP/HTTPS

Advertisement

sasman
Guest

SFTP/HTTPS

I have been tasked to "GET" files from a remote server every day. The given instructions ask me to log into https://www.example.com/ and then, using my web browser, download the needed files. I would like to automate this process and was advised to use WinSCP and a script file, however, I am having problems connecting. I was told to use port 990, but only port 443 seems to get me anywhere, and that's not far.

This is the content of my script file:

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on

# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connect using a password
# open user:password@example.com
open xxxx:xxxx@xxxx.xxxx.com:443

# Disconnect
close

# Exit WinSCP
exit

... and this is what I see when executing:

batch on
confirm off
Searching for host..
Connecting to host..
Host has not answerered for more that 15 seconds, still waiting...
Warning: Aborting this operation will close connection!
(A)bort: Abort
Terminated by user.

I cannot connect using the WinSCP GUI either. Should I be able to connect and download files from the server using WinSCP and a script file?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: SFTP/HTTPS

990 is port for FTPS (FTP over SSL).
443 is port for HTTPS (HTTP over SSL).
WinSCP supported neither of them. Support for FTPS is planned. But WinSCP is not an appropriate tool to HTTPS.

Reply with quote

Advertisement

You can post new topics in this forum