Hello,
Thank you for reading my post.
My problem is about running a program on a remote Windows machine via SSH.
I have:
(A) - a Windows XP machine running an OpenSSH server.
(B) - a Debian GNU Linux machine.
"test.exe" - a C++ program residing on (A) in the "C:\Program Files\OpenSSH\home\<username>\" directory.
I would like (B) to send the order, through a SSH tunnel, to (A) to run "test.exe".
1) I've tried to execute the following command on (B):
Code:
(B)# ssh <username>@(A) "/home/<username>/test.exe"
I get the following error message:
Code:
/home/<username>/test.exe: error while loading shared libraries: libstdc++-6.dll:
cannot open shared object file: No such file or directory
2) I also tried to run the program locally on (A) via SSH:
Code:
(A)# ssh <username>@localhost "/home/<username>/test.exe"
I get the same error message as in case 1).
3) If I run the program directly on (A) like this:
Code:
(A)# C:\Program Files\OpenSSH\home\<username>\test.exe
The program executes properly.
4) I also tried to first connect to (A) via SSH from (B) and then run the program:
Code:
(B)# ssh <username>@(A)
(A)_via_SSH C:\Program Files\OpenSSH\home\<username># test.exe
It doesn't fail (I get no error message) but does nothing either (the program is supposed to open a file, write something to it and finally close it: nothing happens).
Do you have any idea what can be wrong?
Thank you and best regards.
--
Léa