Topic "can login via WinSCP client but not via DOS"

Author Message
meliOnTheJob

Guest


howdy-

so if i launch Winscp.exe and enter the info, i can connect to the sftp with no problems.
when i navigate to the winscp folder via DOS and and test the connection by doing
winscp.com
open
sftp name

i get "searching for host....Network error: connection time out"

what am i missing here?

pls help. ultimately i have a script to login, connect, copy file...but if it doesn't work manually, it will not work in automation.

pls help
Advertisements
meliOnTheJob
[View user's profile]

Joined: 2013-01-31
Posts: 5
also, i can ping it. and the firewall is off.
meliOnTheJob
[View user's profile]

Joined: 2013-01-31
Posts: 5
anyone?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
What is "open" ... "sftp name"?
You should do "open sftp://username@hostname".
Please see
https://winscp.net/eng/docs/scriptcommand_open
meliOnTheJob
[View user's profile]

Joined: 2013-01-31
Posts: 5
"open...sftp" is another way of doing it interactively.
I tested with another sftp and was able to enter credentials.

I also tried what you suggested and got the same network error.

Just doesn't make sense that I can log in via client and not through DOS.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Make WinSCP log both in GUI and scripting and compare the logs. If that does not help, attach the logs here.
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