Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

3d1l

Never mind found the cause of the problem. I have to use:

OPEN ftp://username:password@IPADDRESS

It is now working.

Thanks!
3d1l

Problem using the command OPEN with username and password

I will like to create a script to synchronize folders contents. I already read the instructions and have the commands needed. I tried first doing it manually and got a problem with the open command using an username and password. The host doesn't have a FQDN so I have to use the IP address instead.

If I do it command by command I have no problem:

winscp> open ftp://XXX.XXX.XXX.XXX
Prompting for credentials...
Username: XXXXXXX
Password: XXXXXXX (actually it looks blank)
Connecting to XXX.XXX.XXX.XXX ...
Connected with XXX.XXX.XXX.XXX. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] XXX.XXX.XXX.XXX
winscp>


Notice that I have to use "open ftp://" if I use the command with the IP address alone it doesn't work.

Then I tried:

winscp> open XXXXXX:XXXXXX@ftp://XXX.XXX.XXX.XXX

but it returns:

winscp> open XXXXXX:XXXXXX@ftp://XXX.XXX.XXX.XXX
Searching for host
Host does not exist


Can you please tell me what I'm doing wrong?

regards