Topic "Can't connect to FTP site"

Author Message
Tibb

Guest


It can be connect properly using the dialog version , but have problem when it come to script

below is my script

open [user]:[pwd]@ftp.myhost.com

It return "Network Error: Connection Refused

Then I try again:

open ftp://[user]:[pwd]@ftp.myhost.com

This time it return "Connection Failed"

Please help.
Advertisements
tibb

Guest


Please note that when I using the dialog version, I select "FTP" protocal and the "22" port.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24554
Location: Prague, Czechia
22 is SSH port not FTP. So what protocol do you need to use actually?
_________________
Martin Prikryl
tibb

Guest


I want to use FTP. In the UI mode I select FTP protocal with port number 22 and it get through. Just have problem with the console/script version. I didn't even specific the port number when using the OPEN command.

The UI mode is not practical to me as I have a lot of websites, with the UI mode I have to manually do the transfer task.
tibb

Guest


Hi prikryl,

I just tried to specific the 21 port in the OPEN command and it works. Thanks for reminding me about the port number.

Problem solved. Thanks.
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