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 20:54:27 +0530	[thread overview]
Message-ID: <CADbNrROkpHn=UiyD+AJQ_y-BwJ6SkEUiTZmoT=fdVDooAzUKNA@mail.gmail.com> (raw)
In-Reply-To: <CADbNrRNGB8-FC+1hXgzUcdCWDVhXWg0U0z46t74-G8=vBtD0uA@mail.gmail.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.kumar.sanpui@gmail.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@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 15:24 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
2020-12-05 15:24   ` Raj Kumar Sanpui [this message]

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='CADbNrROkpHn=UiyD+AJQ_y-BwJ6SkEUiTZmoT=fdVDooAzUKNA@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).