From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id 988D2385040D for ; Sat, 5 Dec 2020 15:24:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 988D2385040D Received: by mail-lf1-x132.google.com with SMTP id t6so11815630lfl.13 for ; Sat, 05 Dec 2020 07:24:39 -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=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: In-Reply-To: From: Raj Kumar Sanpui Date: Sat, 5 Dec 2020 20:54:27 +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=-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 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 15:24:41 -0000 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 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@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 >> >> >> >> >> >>