[soft-mpop-qqm:27201] Re: scp command fails to transfer file and returns 1.

Takashi Yano takashi.yano@nifty.ne.jp
Tue Jul 19 04:53:44 GMT 2022


On Tue, 19 Jul 2022 13:18:55 +0900
Takashi Yano <takashi.yano@nifty.ne.jp> wrote:

> On Tue, 19 Jul 2022 02:40:14 +0000
> > Thank you very much for your reply.
> > 
> > >it seems your application is calling scp with " around the arguments, so, scp try to copy "/tmp/a" instead of just /tmp/a.
> > 
> > We analyzed our application again, internally, calling scp command is as follows.
> > 
> >  <Cygwinのインストールディレクトリ>\bin\scp.exe "/cygdrive//C/test/a" "root"@ホスト名:"\"/tmp/a\""
> > 
> > The scp command above runs successfully with the old version Cygwin(3.2.0),
> > but not with the the latest version Cygwin(3.3.5). 
> > 
> > <result of execution on command prompt>
> > =============================================
> > ●the old version Cygwin(3.2.0)
> > ---------------------------------
> > C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\""
> > a                                                               100%   36KB   1.3MB/s   00:00
> > 
> > >echo %errorlevel%
> > 0
> > ---------------------------------
> >  →Successfully.
> 
> In my environment, your test case also fails with cygwin 3.2.0.
> 
> C:\Users\yano>\cygwin64\bin\uname -a
> CYGWIN_NT-10.0-19044 HP-Z230 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64 Cygwin
> 
> C:\Users\yano>\cygwin64\bin\scp "/home/yano/a" "yano"@server:"\"/tmp/a\""
> /usr/bin/scp: dest open ""/tmp/a"": No such file or directory
> /usr/bin/scp: failed to upload file /tmp/a to "/tmp/a"
> 
> The behaviour difference seems not due to cygwin version.

This seems to be behaviour change betweeen OpenSSH 8.x and 9.0.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin mailing list