SSH: Execute Remote Command or Script – Linux
Article Number: 480 | Rating: Unrated | Last Updated: Mon, Feb 18, 2019 2:24 PM
to ROCK? Start a GUI (graphical) application on a remote Linux workstation over SSH! Read more →
Example
Execute the local script.sh
on the remote server:
$ ssh root@192.168.1.1 'bash -s' < script.sh
Posted - Mon, Feb 18, 2019 2:24 PM. This article has been viewed 2554 times.
Filed Under:
Linux
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Related Articles

red hat 7 tmpfiles service
Viewed 1951 times since Thu, Oct 11, 2018
Linux Health Check Commands
Viewed 3313 times since Fri, Jun 8, 2018
Prosty skaner portów TCP w bash
Viewed 3448 times since Thu, May 24, 2018
RHCS: Install a two-node basic cluster
Viewed 10192 times since Sun, Jun 3, 2018