public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Raj Kumar Sanpui <raj.kumar.sanpui@gmail.com>
To: cygwin@cygwin.com
Subject: Re: ssh to cygwin-box and access remote exe fails saying exe is a directory
Date: Sat, 5 Dec 2020 19:16:09 +0530	[thread overview]
Message-ID: <CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA@mail.gmail.com> (raw)
In-Reply-To: <CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw@mail.gmail.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@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
>
>
>
>
>
>

  reply	other threads:[~2020-12-05 13:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14  5:53 Raj Kumar Sanpui
2020-12-05 13:46 ` Raj Kumar Sanpui [this message]
2020-12-05 15:24   ` Raj Kumar Sanpui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA@mail.gmail.com' \
    --to=raj.kumar.sanpui@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).