login about faq

I need to create automated script to transfer files from local host (Windows 2003) to remote host using username and password.

When I run this command from CLI everything works fine:

sftp2 -B c:\scripts\ftp\partner.sftp --password=secret user@ftp.remoteserver.com

content of partner.sftp file is: mput c:\scripts\ftp\out* bye

..\out folder contains files that need to be transferred to remote server.

BUT, when I create script.cmd file out of "sftp2 -B c:\scripts\ftp\partner.sftp --password=secret user@ftp.remoteserver.com" it doesn't work.

This is the error I having: "6209 Broker_connection_connect_failed, Dst: ftp.remoteserver.com, Dst Port: 22, Local username: admin, Remote username: user, Uses gateway?: Yes, Session-Id: 6, "Disconnected by application, Error processing packet., local disconnect"

asked May 21 '10 at 22:06

Roman%20Pomah's gravatar image

Roman Pomah

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 21 '10 at 22:06

Seen: 9,413 times

Last updated: May 21 '10 at 22:06

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.