ssh to cygwin-box and access remote exe fails saying exe is a directory

Raj Kumar Sanpui raj.kumar.sanpui@gmail.com
Wed Oct 14 05:53:53 GMT 2020


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


More information about the Cygwin mailing list