Hi Martin, hi Winscp-Team,
in my report "***" mean "I remmoved a part of string".
I use "win7", "Open-VMS 8.3", "winscp v5.9", "VisualStudio 2015 Express"
So when I run the follow command in cmd.exe:
"C:\Program Files\WinSCP\winscp.com" /command "open sftp://cba***:haf***@5.175.***.*** -hostkey=""*"" -rawsettings KEX=""dh-group1-sha1,dh-group14-sha1,dh-gex-sha1,rsa,WARN"" " "pwd" "exit" /log="C:\Users\***\Desktop\winscp_bug\batch.log" /loglevel=2
then it is workd. OK :)
("dh-group1-sha1" must be used for VMS )
I attached thw log from batch-run too.(batch.log)
But when I run my "C#_code.cs" (it is attached)
I get this output with error :
dumpCommand: pwd
output :
ErrorOutput:
IsSuccess : False
ExitCode : 0
WinSCP.SessionRemoteException: Server unexpectedly closed network connection.
Authentication log (see session log for details):
Using username "cba***".
Authentication failed.
Server unexpectedly closed network connection.
Authentication log (see session log for details):
Using username "cba***".
Authentication failed.
The "session.DebugLogPath" and "session.SessionLogPath" are attached too. (c#_code.deblog, c#_code.log)
IP, loginname, password, winscp version are same.
When I mixd run the "batch" and "c#_code" i have the same error for "c#_code" and the batch is always error-free.
I read the forum and the documentation but i din'nt find explanation or i am not enought adept.
I hope you can help for me.
Thanks in advance!
Csaba
ps.: sorry for my poor english