SCP fails with read failure on openssh6.5.

Nico Kadel-Garcia nkadel at gmail.com
Sat Feb 21 02:09:00 AEDT 2015


Use rsync instead of scp?

Nico Kadel-Garcia
Email: nkadel at gmail.com
Sent from iPhone

> On Feb 20, 2015, at 7:16, Roshan Nair <roshanr.nair at gmail.com> wrote:
> 
> Hi,
> 
> Wanted to know if there is a work around or a fix available for the scp
> failure issue we are seeing in atomicio6 func ? SCP code transfer starts
> but in between gets stuck with read failure.
> 
> The linux version we have on our system is Linux (none) 2.6.34.6  and open
> ssh version is OpenSSH_6.5p1, OpenSSL 1.0.1j.
> Since its not possible for us to move to the latest linux kernel I am
> trying to find a way for a fix.
> 
> The code flow is as below :
> 
> 
> 
> main() -> ..->sink()->atomicio6()->read()
> 
> 
> In func atomicio6() returns response -1 with error number EAGAIN during the
> course of the transfer.
> 
> Error number EAGAIN leads to a poll() being called which I believe never
> returns and hence the scp transfer hangs.
> 
> I have tried enabling the macro BROKEN_READ_COMPARISION but no help.
> 
> I tried a solution mentioned in the thread below but that too didnt quiet
> help.
> 
> https://lists.mindrot.org/pipermail/openssh-unix-dev/2014-January/032080.html
> 
> Anything else I can try to fix this or any workaround anyone can suggest ?
> 
> -- 
> ---------------------------------------------------------------------------------
> Roshan Nair
> 
> --whatever you end up doing ... love it!
> ---------------------------------------------------------------------------------
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


More information about the openssh-unix-dev mailing list