Run Local Script On Remote System via SSH

Discussion in 'Linux' started by Gabriel9999, May 7, 2020.

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    37
    5
    0
    I have a script in my system. I want to run this script on the remote system which has SSH connection.
     
  2. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,232
    1,854
    120
    ssh user@remotehost "bash -s" < local_script.sh