sftp to cygwin cmd fails with "received message too long"
- by ana
I have a windows server running cygwin, where open-ssh is set up.
I am able to ssh into the server fine.
I need to run a script that I cannot amend, and which needs to copy files via sftp, and requires the shell to be cmd. However, it fails with the message
"received message too long" because when cmd starts it displays the Windows banner, and sftp chokes on this.
I can't find any way to disable the banner, or redirect the output, or in any way get around this problem.
Does anyone know how I can fix this?