cannot connect via command line but works via GUI

Advertisement

pn2kt
Joined:
Posts:
2
Location:
TEXAS

cannot connect via command line but works via GUI

winscp 4.0.6 (Build 358)
I could connect successfully via FTP to the server using the GUI. But my script run on the same client timed out.
Below is excerpt of my script:
option batch on
option confirm off
open user:password@ftp.server.com:21

below is the error:
batch on
confirm off
Searching for host...
Connecting to host...
Host has not answered for more than 15 seconds. Still waiting...
Warning: Aborting this operation will close connection!
(A)bort: Abort
Terminated by user.

Without the port, the error message is:
batch on
confirm off
Searching for host...

Network error: Connection timed out.

Any insights?

Reply with quote

Advertisement

JRB_BMB
Joined:
Posts:
24
Location:
Midlands, UK

tried using a saved profile in winSCP and getting it to open that connection instead of defining it in the file?
Less secure but would test its capable via the command line surely?

Reply with quote

Guest

I have resolved it. I just added the protocol to the open command.
open ftp:user:password@site.com
Thanks all for your help.

Reply with quote

Advertisement

You can post new topics in this forum