SSH: Execute Remote Command or Script – Linux


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


Article Number: 480
Posted: Mon, Feb 18, 2019 2:24 PM
Last Updated: Mon, Feb 18, 2019 2:24 PM

Online URL: http://kb.ictbanking.net/article.php?id=480