delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/05/08:47:17

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 469143836C57
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1607175986;
bh=y1YjPetUcxL1QYclzxk/Pjafx4d4brYieySvlXhleHU=;
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=C1XzBZfRp1UJqExnCjzLyRQjkaiyyl8z+sUGPPfKBOM21dx79fqS+5zJjbATLXXSj
2HimHUQwxb7bobcz7A+7qqYZoJZpztyM1P34RgUVDBkitRvK0H4Oeeg6kYO0Sh2lYB
zA/aZz1aFAdbv9heoov33wPLqKoK0cvTYlXVhVr8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9405B383E805
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=4t3bJMaVjgT9g/6d3jx5BVjHePoZN7HV2+6CLDQVUL4=;
b=m5YfaS4GdqJL4UB1hrOaN5LLyZuN9YJjRYbG7BaT6YfXjse6OiK0QHDALZL6USO69N
7ABGS5mrlTe/RvjwEXl9ui4UCwi0PLPX/9CLjMtmKUDbY/UwoTGIE9GZ5TOAD3kBelcQ
cDlODW6c1J+jheJLdktYIRwHib0GYQxWD6VGNB1ckePXMmvoRdF2DjnMsI8zsmznaOVQ
oILSVWndMrVGEbUWGTSu+Qib8gP0KTP/bI1kkYHQZLK57ukzSMFgjnOoZtQBcDVYU6wR
SOfalwMEVfR+SwDeBNznJUMsPR/0aWwU2uCWhKZFqKI8k+siWyNU9GaWAr173ELlk3mn
AHiw==
X-Gm-Message-State: AOAM532LeIr4rI9N/JrqCHMM1a3SkLwOxkHvjFxnDUNaltQgqjz970Z7
I/AipdSS02uDusF/nHJ0h+VAqWMhiyYcgf/+QmkBzA040ET4EA==
X-Google-Smtp-Source: ABdhPJxlqlogu85wmkPtl6+Axm4bTJg7wZWrNxUfj1F/M9txnF3M6/Qjvx7VikF/abYIpq0hikP73SQ/Rg2a8yw4euw=
X-Received: by 2002:a2e:b8d0:: with SMTP id s16mr5214890ljp.423.1607175980688;
Sat, 05 Dec 2020 05:46:20 -0800 (PST)
MIME-Version: 1.0
References: <CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw AT mail DOT gmail DOT com>
In-Reply-To: <CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw@mail.gmail.com>
Date: Sat, 5 Dec 2020 19:16:09 +0530
Message-ID: <CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA@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=-2.6 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 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