I had something similar
When I logged on normally via ssh I had a script running as part of the .profile that was giving me a load of output. This was causing winscp to fail.
I disabled the script and I was ok again
When I logged on normally via ssh I had a script running as part of the .profile that was giving me a load of output. This was causing winscp to fail.
I disabled the script and I was ok again