File ini missing import when run command line

Advertisement

Guess
Guest

File ini missing import when run command line

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

Reply with quote

Advertisement

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: File ini missing import when run command line

That's correct. You just do not need the ProxyMethod=0, that's the default.

Reply with quote

Advertisement

You can post new topics in this forum