Run Local Script on Remote Host over SSH

user-pic
Vote 0 Votes

ssh user@host bash -s -- < local-script.sh

You can add arguments if you need.
ssh user@host bash -s -- < local-script.sh argv1

About this Entry

This page contains a single entry by Pank published on May 20, 2016 10:35 AM.

OpenVPN for Android was the previous entry in this blog.

Avoid SSH Connection timeout is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives