Skip to content

Remote Script Execution (via SSH)

Alexander Frank edited this page Mar 19, 2019 · 1 revision

Tips and Tricks for SSH usage

Execute local scripts on remote Host

ssh -t name@greatserver.com "$(< ~/setup.sh)"

The t option is required only if an interactive session is required. It allocates a pseudo terminal (PTY). The target script is piped directly to the remote and is executed locally.

Found here. Also consider the man page.

Clone this wiki locally