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.san...@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 > > > > > > -- 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