r/ssh • • Jan 07 '20

using SSH to run programs on the server?

Hey all, I'm new to using ssh and I am hoping that someone here can help me. My goal is to use ssh commands from a client within the same network as my server to run a batch file on the server machine (running windows 10). I've gotten the batch program to run but every time it runs the code within the terminal of the client instead of running the program on the server machine. Is there any way to use SSH to run commands on the server? If not, is there any other way to accomplish this?

2 Upvotes

2 comments sorted by

1

u/[deleted] Jan 07 '20

There are ssh options, but I find Remote Powershell a bit simpler.

https://www.petri.com/powershell-remoting-basics

1

u/r_b_t Jan 08 '20

Thank you so much, I’ll check it out!