0

My goal is to call a .bat file from Linux to Windows, adn pass the remote user pw in the line I use to call this .bat file. I'll explain in detail:

I have to execute a command to run a .bat file in a Windows server as an user of the Windows Server, from a Linux machine. My Linux SO is Centos. The two machine are in the same network so they speak between themselves.

I've decided to try and install an ssh server on windows, and call it via ssh command on Centos. I've installed the ssh server on windows, but it everytime I connect it prompt for manually insert Window's user pw. Is there a way I can parametrize the pw and not be asked to insert it manually?

My ssh code is:

ssh user@SERVERIP --- bit when i insert the pw example.bat

What should I do to parametrize the pw from this point on? I didn't see any argument like -p or something in which insert the pw.

0 Answers0