Probably model are as follows:
Web interface
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
| | Linux (SSH client)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
/| \
/| \
/| \
Machines A Win Win Win machine B C
Description:
Windows equipment:
1> SSH server setup, and establish trust relationship with Linux device (public and private key), can be password-less connection;
2> All batch script (here start. Bat, stop. Bat)
Linux device:
1> Build a Web page
control2> Can Win via SSH connection device, and send the related bat commands, such as: SSH test @ Win machine B "C: \ stop. Bat"
When performing SSH in Linux test @ Win machine B "C: \ start. The bat," will have the following problems:
01 - in Linux command does not return, block
02 - on the Windows side, in the task manager, can see the process started, but couldn't find the operation interface,
03 - when Linux use Ctrl + C to stop the progress of the Windows are closed
I on Windows, run directly start. There is no question of bat,
Is my final demand, how to use the SSH command (on a Linux machine) to achieve run directly start. The running effect of bat , thank you first!!!!!!
CodePudding user response:
No one knows? HELP