Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
-pw passwordparameter to (
putty.exe) commandline. Obviously it cannot work with
wt.exe. So the behaviour you are getting it expected. Actually the Win32-OpenSSH section explicitly states that you need to turn the option off:
!Ppattern. But I do not know if there is a way to provide a password to the Windows version of
ssh.exe. See also https://stackoverflow.com/q/23419659/850848
sshpasspackage. See also https://winscp.net/eng/docs/integration_putty#wsl