delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/05/10:25:26

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DAFD385040D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1607181883;
bh=R/LMDq581IaQKsLq6atAK0vYxRhqVKmm2cn+tNbPeck=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=uLoso7GmJxs3rPUNf6idktb249JOfS2m2NjC9oaKecpRV92Qt9f9VCRrIxEGR0yV4
PRNtMrVDG2RffvecohOL8J5i44WEzVUKsyazf5SJQgiD2E7PmBVmKlRHB6rJ2x3iDo
VhnkhdyJwDxtZDVBsJQV7RAilojJ9AxxDQ6E2arU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 988D2385040D
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=mFg0hYrfvQrQEwPN9duXA2sYzp9qd0AXR2zFIE6Yk8E=;
b=APIP8MtPdMGD0MwKhyz2rVwoxniO7Y0bUKXqFKxJjaIIalxGNH5/rXUvTEM6r9X0pR
XobUov7pXx0rEcTziaj/s5zAYrehl7TXe1qnRwDk0A9PfPpVbDU8vFOcOVTmKEiEaeHH
cLsfyfOvCVG8D/vXpBUQdGGR5xUYgCGjnnPPcUyIJnJNGEIJZa4+4lj1EsbdTOUqQZJB
aB16YqEOwQB9P5lBRtx5HoMnSws4ixeKXWUh1Mz7DzajenLvNRXvcNIJPPnhmPl9zaHY
zXyPj30Ig3EPKd/blXebriorWW7nUNARnKZx3zPGWg2AlFrR6R4Aoql+0mGi90dkaZU1
xp4A==
X-Gm-Message-State: AOAM531KZ7Q3JN44Qa88p2BUjO70IxKZEDj0o/Nmli2rsTqiqxW/nbG5
p60HZlvEquLksSxkoiPWXnpHdqj0kVdhiUr2gavOuASBs+IlPA==
X-Google-Smtp-Source: ABdhPJw8xA55/vPhDvbQVOSmbNLdiQnVXTn2zalYsdMwqntLC6SxfAakQSXuOH9iUUC5qiq8ByOzhdSauYcOmnbdUPE=
X-Received: by 2002:ac2:554d:: with SMTP id l13mr73081lfk.470.1607181878118;
Sat, 05 Dec 2020 07:24:38 -0800 (PST)
MIME-Version: 1.0
References: <CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw AT mail DOT gmail DOT com>
<CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA AT mail DOT gmail DOT com>
In-Reply-To: <CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA@mail.gmail.com>
Date: Sat, 5 Dec 2020 20:54:27 +0530
Message-ID: <CADbNrROkpHn=UiyD+AJQ_y-BwJ6SkEUiTZmoT=fdVDooAzUKNA@mail.gmail.com>
Subject: Re: ssh to cygwin-box and access remote exe fails saying exe is a
directory
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_KAM_HTML_FONT_INVALID autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Raj Kumar Sanpui via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Raj Kumar Sanpui <raj DOT kumar DOT sanpui AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

I feel, i got the answer to the question here:
https://superuser.com/questions/1607551/remote-login-using-ssh-keys-vs-password-weird-error-is-a-directory/1607563

This issue may be marked as close.

On Sat, Dec 5, 2020 at 7:16 PM Raj Kumar Sanpui <raj DOT kumar DOT sanpui AT gmail DOT com>
wrote:

> I haven't received any help/suggestions from the forum, but i tried
> digging deeper.
> Now i can see the "Is a directory" error happens if I do passwordless ssh
> (copying my public key using ssh-copy-id) to remote Cygwin box and try
> executing the exe, i get the error.
>
> rsanpui AT cygwin ~
> $ "//DNVM/E920/System920/x86/MyWorld Client Install/install/setup.exe"
> -bash: //DNVM/E920/System920/x86/MyWorld Client Install/install/setup.exe: Is a directory
>
>
> If i do a usual password based logging using ssh, then there is no error
> message.
>     rsanpui AT cygwin ~
>    $ "//DNVM/E920/System920/x86/MyWorld Client Install/install/setup.exe"
>
> Guys, i am really stuck as we are trying to develop an application which
> will do passwordless ssh and execution of the exe. Can someone please
> suggest?
>
> On Wed, Oct 14, 2020 at 11:23 AM Raj Kumar Sanpui <
> raj DOT kumar DOT sanpui AT gmail DOT com> wrote:
>
>> Hi All,
>>
>> I am trying to access an exe hosted in a shared drive in a remote machine.
>> (Please note: T*he exe is NOT hosted on the box where cygwin is
>> installed but a different one*.)
>>
>>
>> *Case 1: Which fails*
>> If i ssh to the Windows box where cygwin is installed, and then try to
>> access the remote exe it *fails saying "exe is a directory"*
>>
>> [rundeck AT den PKG_INSTALL_SERVICE]$ cat snapshot1.bat | ssh
>> rsanpui AT cygwin-box
>>
>> Pseudo-terminal will not be allocated because stdin is not a terminal.
>> -bash: line 1: //remote-box/owshare/owinstal/Snapshot/SnapShot.exe: *Is
>> a directory*
>>
>> What i have inside snapshot1.bat is simple -
>> [rundeck AT den PKG_INSTALL_SERVICE]$ cat snapshot1.bat
>> "//remote-box/owshare/owinstal/Snapshot/SnapShot.exe"
>>
>> *Case 2: Which works*
>> If i login to the Windows VM where cygwin is installed, and try to access
>> the same remote exe it works.
>>
>> What am I missing? Please advise.
>>
>> Thanks
>>
>>
>>
>>
>>
>>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019