Topic "Doubt in Open Command"

Author Message

Hi All,

I am very new to winscp. My requirement is very simple. I just need to download the files from ftp and save it in local drive. I am trying to write batch file by getting online help. I have a doubt in Open command.

Syntax(Got it online):
open s -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

I am not sure how to change it. For example, my FTP address is and username/password is catftp/pass123. I dont know what the host key is. Please guide me on how to write ftp command.
[View user's profile]

Joined: 2016-02-18
Posts: 2
Location: India
I posted the above question. what is that "" in the syntax?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
You want to use:


The -hostkey is for SFTP/SCP, not for FTP.


You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License