Topic "Doubt in Open Command"

Author Message
Guest




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 sftp://user:password@example.com/ -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 ftp.sourcing.com and username/password is catftp/pass123. I dont know what the host key is. Please guide me on how to write ftp command.
bala_ganesh
[View user's profile]

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

open ftp://catftp:pass123@ftp.sourcing.com/

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

See http://winscp.net/eng/docs/session_url
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License