How to use SSH to run a local shell script on a remote machine?
Asked 07 September, 2021
Viewed 1.1K times
  • 61
Votes

I have to run a local shell script (windows/Linux) on a remote machine.

I have SSH configured on both machine A and B. My script is on machine A which will run some of my code on a remote machine, machine B.

The local and remote computers can be either Windows or Unix based system.

Is there a way to run do this using plink/ssh?

20 Answer