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 2630 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

10 nmap Commands Every Sysadmin Should Know
Viewed 10195 times since Wed, May 22, 2019
Używanie rsync poprzez Secure Shell
Viewed 41496 times since Thu, May 24, 2018
Logrotate Example for Custom Logs
Viewed 2789 times since Sun, Jan 12, 2020
LUKS dm-crypt/Device encryption GUIDE
Viewed 2566 times since Fri, Jul 13, 2018
LVM basic
Viewed 2407 times since Sat, Jun 2, 2018
www.unixarena.com
Viewed 2626 times since Fri, Jul 27, 2018