Topic "cannot connect via command line but works via GUI"

Author Message
pn2kt
[View user's profile]

Joined: 2008-07-02
Posts: 2
Location: TEXAS
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?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Can you try that with 4.1.4 beta?
_________________
Martin Prikryl
pn2kt
[View user's profile]

Joined: 2008-07-02
Posts: 2
Location: TEXAS
Thank you for the response, Martin.
I tried 4.1.4 beta. Unfortunately, it also failed.
JRB_BMB
[View user's profile]

Joined: 2008-07-01
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?
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.
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