sftp to cygwin cmd fails with "received message too long"
Posted
by
ana
on Server Fault
See other posts from Server Fault
or by ana
Published on 2012-11-21T10:31:53Z
Indexed on
2012/11/21
11:05 UTC
Read the original article
Hit count: 533
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?
© Server Fault or respective owner