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 email@example.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 firstname.lastname@example.org" 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