Topic "searching for host"

Author Message
fjbass78
[View user's profile]

Joined: 2013-07-11
Posts: 6
trying to connect to an SFTP site using a bat file that calls a script.
i'm able to connect via the WinSCP GUI but when launching the bat file, a DOS screen tells me "searching for Host" then closes with out connecting.
here's the script file i'm using: what do i have wrong?

option batch abort
option confirm off

open sftp://Account:password@FTX-SERVSH.bnymellon.com/
-hostkey="ssh-rsa-9e-c2-dd-6d-86-a6-30-56-9d-ea-99-de-ff-c3-5f-2d"

synchronize remote \\amna1wgraapx01\apx$\rep\jpmDailyReports\ /advent
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Show us a complete session log file both from GUI and the script.
fjbass78
[View user's profile]

Joined: 2013-07-11
Posts: 6
here are the logs
mellon winscp log.txt (4.58 KB) Private file

Description: log from winscp gui

fjbass78
[View user's profile]

Joined: 2013-07-11
Posts: 6
log from the script
WinSCP.log (3.14 KB) Private file

Description: log from the script

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
In GUI, you are using SOCKS5 proxy. In scripting you are connecting directly.

Have WinSCP GUI generate a script file template with proxy settings for you:
https://winscp.net/eng/docs/ui_generateurl#script
_________________
Martin Prikryl
fjbass78
[View user's profile]

Joined: 2013-07-11
Posts: 6
I'm not seeing the script tab. I only see the Generate URL option. how do I get tot he Script Tab to generate the WinSCP script?
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
fjbass78 wrote:
I'm not seeing the script tab. I only see the Generate URL option. how do I get tot he Script Tab to generate the WinSCP script?

You have to upgrade to the latest version of WinSCP.
fjbass78
[View user's profile]

Joined: 2013-07-11
Posts: 6
Thanks Martin, that works nice!
Advertisements

You can post new topics in this forum

Search

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