Topic "comand line login"

Author Message
arnaudo
[View user's profile]

Joined: 2007-12-20
Posts: 4
Hello everibody,
i would connect to a server using comand line commands.

to do this i tried this line, but the error is 'Host not found'.
Now, using the GUI i can connect with the server, so i think the values are right, and in the comand line i have changed the value '@' with '%40'.

Where is my fault?

c:\BackUp\Target>c:\Programmi\WinSCP\winscp.exe open pippo%40aruba.it:password@ftp.massimo.arnaudo.name

Best regards
Massimo
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Correct command would be:
winscp.exe /console /command "open pippo%40aruba.it:password@ftp.massimo.arnaudo.name"
_________________
Martin Prikryl
arnaudo
[View user's profile]

Joined: 2007-12-20
Posts: 4
Hello,
thanks for your answer.
I tried like you suggested, but the response is:

Searching for host...

Network error: Connection timed out.
winscp>

I confirm that usung WinSCO GUI, there are not problem to login.

Any new suggestions?

Best regards
Massimo
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What protocol does the server support? Note that WinSCP by default uses SFTP. So if you need to use FTP for instance, you need to specify that in the open command.
_________________
Martin Prikryl
arnaudo
[View user's profile]

Joined: 2007-12-20
Posts: 4
Hello Prikryl,
i have changed the script like suggested:

c:\Programmi\WinSCP>WinSCP.exe /console /command "open ftp://pippo%40aruba.it:password@ftp.massimo.arnaudo.name"

But:
Connecting to ftp.massimo.arnaudo.name:22 ...
Connection failed.
Timeout detected.
Connection failed.
winscp>

This do not work yet...

Best Regards
Massimo
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You need to also specify port 21. WinSCP defaults to 22. I guess it should default to 21 with FTP, I'll fix that in the next version.
_________________
Martin Prikryl
arnaudo
[View user's profile]

Joined: 2007-12-20
Posts: 4
prikryl wrote:
You need to also specify port 21. WinSCP defaults to 22. I guess it should default to 21 with FTP, I'll fix that in the next version.


Hello,
now it works!

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