Connection Closed by Remote Host (SCP & SFTP)

Topics: Developer Forum, User Forum
Oct 14, 2011 at 6:16 PM
Edited Oct 14, 2011 at 6:19 PM

I have installed the package on my Windows CE 5.0 device and the SSH (remote login) works but the file transfer protocols (SCP & SFTP) fails shortly after the command is sent to the remote host and the file transfer begins.  And gives this printout on the debug screen:

Connection to 192.168.1.157 closed by remote host.
Transferred: sent 2048, received 1872 bytes, in 0.5 seconds
Bytes per second: sent 4222.7, received 3859.8
debug1: Exit status -1

It is apparent that the Windows CE device is closing the connection but the reason is not clear. If anyone else has came across this issue and found a way to rectify the problem, I would really appreciate some pointers on how you resolved it.

 

 

Oct 14, 2011 at 9:16 PM

Issue Resolved... The executables must be placed in a directory on the device which has execute permissions for the user doing the transfers.