From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 9405B383E805 for ; Sat, 5 Dec 2020 13:46:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9405B383E805 Received: by mail-lj1-x22e.google.com with SMTP id q8so9788267ljc.12 for ; Sat, 05 Dec 2020 05:46:22 -0800 (PST) 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: In-Reply-To: From: Raj Kumar Sanpui Date: Sat, 5 Dec 2020 19:16:09 +0530 Message-ID: Subject: Re: ssh to cygwin-box and access remote exe fails saying exe is a directory To: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2020 13:46:24 -0000 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@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@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.kumar.sanpui@gmail.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@den PKG_INSTALL_SERVICE]$ cat snapshot1.bat | ssh > rsanpui@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@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 > > > > > >