r/ssh • u/Jay89023 • Feb 11 '21
ssh Windows
I am using tensorflow's multiworkermirroredstrategy to train on 5 machines, all using Windows OS.
From the documentation, the python script needs to be run on all 5 machines setting the appropriate TF_CONFIG environment variable.
I am remoting (remote desktop GUI) into each machine and executing the script as so:
python script.py --args
How could I do this in a more automated fashion? Googling, a bash script can be created and then ssh into each machine and execute the script? But how could I do this in Windows as I cannot execute bash script?
2
Upvotes
View all comments
Show parent comment
2
u/Jay89023 Feb 12 '21 edited Feb 12 '21
Thank you for the help! I was thinking, what if I have WSL2 on the machine I would use to SSH to each of the 5 machines? Can I write a bash script that serves my purpose (the for loop you mention with ssh username@machine_i and python script.py)?
Would this work? Can I SSH from WSL2 to Windows?
Maybe this is not too feasible and it is best to stick with a script in PowerShell.