Topic "File ini missing import when run command line"

Author Message
Guess

Guest


Hi all,

I have problem below:
1. First
I setting tool (WinSCP.exe) and connect server are OK (upload and download are OK).
I have to setting Tunnel public IP (xx.xx.83.85:22, and user/pass authen) and then setting local IP(xxx.xx.247.106:22, user/pass authen) in group session.

2. Second
I switch use command line
ex: WinSCP.com /ini="C:\WinSCP.ini" /script="C:\Program Files (x86)\WinSCP\test.txt" /Log="C:\Log.txt"
Throwing error:
. 2015-09-14 15:45:19.906 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2015-09-14 15:45:19.906 Using stored password.
. 2015-09-14 15:45:19.907 Sent password
. 2015-09-14 15:45:20.022 Access granted
. 2015-09-14 15:45:20.022 Opening session as main channel
. 2015-09-14 15:45:20.104 Opened main channel
. 2015-09-14 15:45:20.317 Started a shell/command
. 2015-09-14 15:45:20.317 --------------------------------------------------------------------------
. 2015-09-14 15:45:20.317 Using SFTP protocol.
. 2015-09-14 15:45:20.327 Doing startup conversation with host.
> 2015-09-14 15:45:20.327 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2015-09-14 15:45:20.327 Attempt to close connection due to fatal exception:
* 2015-09-14 15:45:20.327 Received too large (1416128883 B) SFTP packet. Max supported packet size is 1024000 B.
* 2015-09-14 15:45:20.327
* 2015-09-14 15:45:20.327 The error is typically caused by message printed from startup script (like .profile). The message may start with "This".
. 2015-09-14 15:45:20.327 Closing connection.
. 2015-09-14 15:45:20.327 Sending special code: 12
. 2015-09-14 15:45:20.327 Sent EOF message
Guest




This issue resolved.
My solution:
WinSCP.Com /script="C:\test.txt" /log="C:\Log.txt"

Content of Test.txt:
option transfer automatic
option batch abort
option confirm on

open sftp://user:pass@xxx.xxx.xxx.106 -rawsettings ProxyMethod=0 Tunnel=1 TunnelHostName=xx.xx.xx.85 TunnelPortNumber=xx TunnelUserName=user TunnelPasswordPlain=pass
cd /home/package
put C:\test.png l
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
That's correct. You just do not need the ProxyMethod=0, that's the default.
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