Horje
run script via ssh Code Example
run script via ssh
If Machine A is a Windows box, you can use Plink (part of PuTTY) with the -m parameter,and it will execute the local script on the remote server.

    plink root@MachineB -m local_script.sh

If Machine A is a Unix-based system, you can use:

    ssh root@MachineB 'bash -s' < local_script.sh


You shouldn't have to copy the script to the remote server to run it.
bash ssh into server and run command
< commands-to-execute-remotely.sh ssh blah_server




Shell

Related
install atom ubuntu 18 Code Example install atom ubuntu 18 Code Example
Ignore Composer Platform Request Code Example Ignore Composer Platform Request Code Example
split string in shell script Code Example split string in shell script Code Example
undo airmon-ng check kill Code Example undo airmon-ng check kill Code Example
Gitlab Reconfigure Code Example Gitlab Reconfigure Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9