Sep 24, 2018

[HDGEM] How to Execute Remote Command or Script by SSH – Linux

Run multiple command on a remote host over SSH:
$ ssh [email protected] 'COMMAND1; COMMAND2; COMMAND3'
– or –
$ ssh [email protected] 'COMMAND1 | COMMAND2 | COMMAND3'
– or –
$ ssh [email protected] << EOF  COMMAND1  COMMAND2  COMMAND3  EOF


--
Posted By Blogger to HDGEM at 5/11/2017 02:20:00 PM