Programming

Execute a local bash script through SSH

Before this blessed day, I lost my time copying my bash scripts on the remote machines where I wanted to execute them through the ssh command. Until now, when I discovered that it is not necessary, thanks to the bash -s flag.

$ ssh user@remote 'bash -s'

Source

Back