Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Password prompt with .AddRawSetting in .NET Assembly

knockando wrote:

I need to add a little more which I apologize if it should be a different thread. When I set sessionOptions.AddRawSettings("SshSimple","0") it appears WinSCP is prompting for the password which was already sent. Not sure what to do in the .NET assembly.

This is known bug:
https://winscp.net/tracker/1083
martin

Re: -rawsettings for simple@putty and winadj@putty

knockando wrote:

Transfers are successful but we're getting some errors in our firewall log we'd like to stop. I've sent -rawsettings via the .NET assembly for SshSimple=0 to stop an error we're getting in our firewall logs dealing with simple@putty.projects.tartarus.org. Now I'm getting errors relating to winadj@putty.projects.tartarus.org.

Is there a similar -rawsetting to stop the winadj@putty.projects.tartarus.org error/message?

This request has been added to the tracker:
https://winscp.net/tracker/1139

I have sent you an email with a development version of WinSCP to address you have used to register on this forum.

Settings is BugWinAdj=2.
knockando

Password prompt with .AddRawSetting in .NET Assembly

I need to add a little more which I apologize if it should be a different thread. When I set sessionOptions.AddRawSettings("SshSimple","0") it appears WinSCP is prompting for the password which was already sent. Not sure what to do in the .NET assembly.

Without the raw setting the transfer works, with it I get the following error:

Authentication log (see session log for details):
Using username xxxxxx.

Authentication failed.

LOG FILE:
. 2014-03-06 11:22:53.168 --------------------------------------------------------------------------
. 2014-03-06 11:22:53.168 WinSCP Version 5.2.5 (Build 3686) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2014-03-06 11:22:53.168 Configuration: nul
. 2014-03-06 11:22:53.169 Local account: xxxxx
. 2014-03-06 11:22:53.169 Working directory: C:\Program Files (x86)\WinSCP
. 2014-03-06 11:22:53.169 Process ID: 9548
. 2014-03-06 11:22:53.169 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\xxxxx\AppData\Local\Temp\wscp1608.03F9F2B8.tmp" /xmlgroups /nointeractiveinput /dotnet=525 /ini=nul /log="C:\apps\WinSCP_Session.log" /console /consoleinstance=_5640_47674696_156
. 2014-03-06 11:22:53.169 Time zone: Current: GMT-6, Standard: GMT-6, DST: GMT-5, DST Start: 3/9/2014, DST End: 11/2/2014
. 2014-03-06 11:22:53.169 Login time: Thursday, March 06, 2014 11:22:53 AM
. 2014-03-06 11:22:53.169 --------------------------------------------------------------------------
. 2014-03-06 11:22:53.169 Script: Retrospectivelly logging previous script records:
> 2014-03-06 11:22:53.169 Script: option batch on
< 2014-03-06 11:22:53.169 Script: batch on
> 2014-03-06 11:22:53.169 Script: option confirm off
< 2014-03-06 11:22:53.169 Script: confirm off
> 2014-03-06 11:22:53.169 Script: open -hostkey="ssh-rsa 2048 [key here]" -timeout=1296000 sftp://[username]:***@[server ip] -rawsettings SshSimple="0"
. 2014-03-06 11:22:53.169 --------------------------------------------------------------------------
. 2014-03-06 11:22:53.169 Session name: [user]@[server] (Ad-Hoc site)
. 2014-03-06 11:22:53.169 Host name: [server] (Port: 22)
. 2014-03-06 11:22:53.169 User name: [user](Password: No, Key file: No)
. 2014-03-06 11:22:53.169 Tunnel: No
. 2014-03-06 11:22:53.169 Transfer Protocol: SFTP
. 2014-03-06 11:22:53.169 Ping type: -, Ping interval: 30 sec; Timeout: 1296000 sec
. 2014-03-06 11:22:53.169 Proxy: none
. 2014-03-06 11:22:53.169 Send buffer: 262144
. 2014-03-06 11:22:53.169 SSH protocol version: 2; Compression: No
. 2014-03-06 11:22:53.169 Bypass authentication: No
. 2014-03-06 11:22:53.169 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-03-06 11:22:53.169 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-03-06 11:22:53.169 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-03-06 11:22:53.169 Simple channel: No
. 2014-03-06 11:22:53.169 Return code variable: Autodetect; Lookup user groups: A
. 2014-03-06 11:22:53.169 Shell: default
. 2014-03-06 11:22:53.169 EOL: 0, UTF: 2
. 2014-03-06 11:22:53.169 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-03-06 11:22:53.169 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-03-06 11:22:53.169 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-03-06 11:22:53.169 Cache directory changes: Yes, Permanent: Yes
. 2014-03-06 11:22:53.169 DST mode: 1; Timezone offset: 0h 0m
. 2014-03-06 11:22:53.169 --------------------------------------------------------------------------
. 2014-03-06 11:22:53.170 Looking up host "[server]"
. 2014-03-06 11:22:53.170 Connecting to [server] port 22
. 2014-03-06 11:22:53.180 Server version: SSH-2.0-OpenSSH_4.6
. 2014-03-06 11:22:53.180 Using SSH protocol version 2
. 2014-03-06 11:22:53.180 We claim version: SSH-2.0-WinSCP_release_5.2.5
. 2014-03-06 11:22:53.186 Doing Diffie-Hellman group exchange
. 2014-03-06 11:22:53.295 Doing Diffie-Hellman key exchange with hash SHA-256
. 2014-03-06 11:22:54.417 Verifying host key rsa2
with fingerprint ssh-rsa 2048 [key here]
. 2014-03-06 11:22:54.417 Host key matches configured key
. 2014-03-06 11:22:54.418 Host key fingerprint is:
. 2014-03-06 11:22:54.418 ssh-rsa 2048 [key here]
. 2014-03-06 11:22:54.418 Initialised AES-256 SDCTR client->server encryption
. 2014-03-06 11:22:54.418 Initialised HMAC-SHA1 client->server MAC algorithm
. 2014-03-06 11:22:54.418 Initialised AES-256 SDCTR server->client encryption
. 2014-03-06 11:22:54.418 Initialised HMAC-SHA1 server->client MAC algorithm
! 2014-03-06 11:22:54.526 Using username "[user]".
. 2014-03-06 11:23:09.550 Prompt (7, SSH password, , &Password: )
. 2014-03-06 11:23:09.550 Disconnected: Unable to authenticate
knockando

-rawsettings for simple@putty and winadj@putty

Transfers are successful but we're getting some errors in our firewall log we'd like to stop. I've sent -rawsettings via the .NET assembly for SshSimple=0 to stop an error we're getting in our firewall logs dealing with simple@putty.projects.tartarus.org. Now I'm getting errors relating to winadj@putty.projects.tartarus.org.

Is there a similar -rawsetting to stop the winadj@putty.projects.tartarus.org error/message?

Thanks!