comand line login

Advertisement

arnaudo
Joined:
Posts:
4

comand line login

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: comand line login

Correct command would be:
winscp.exe /console /command "open pippo%40aruba.it:password@ftp.massimo.arnaudo.name"

Reply with quote

arnaudo
Joined:
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

Reply with quote

martin
Site Admin
martin avatar

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.

Reply with quote

arnaudo
Joined:
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar

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.

Reply with quote

arnaudo
Joined:
Posts:
4

martin 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

Reply with quote

Advertisement

You can post new topics in this forum