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
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