Problem using the command OPEN with username and password

Advertisement

3d1l
Joined:
Posts:
2

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

Reply with quote

Advertisement

3d1l
Joined:
Posts:
2

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

OPEN ftp://username:password@IPADDRESS

It is now working.

Thanks!

Reply with quote

Advertisement

You can post new topics in this forum