Guest Challenger. Posted December 13, 2015 Posted December 13, 2015 If you want to execute any command or script on a remote Linux machine, you can use ssh. Below are a few examples.The syntax for running a command or script on a remote server is:ssh [uSER]@[iP] [command or script]Let us look at how this can be done. Suppose you want to display the directory contents of /root of a remote host, you can run the following command:[narendra@ubunu]$ ssh root@172.16.223.128 ls -l /rootroot@172.16.223.128's password:total 12drwxr-xr-x. 2 root root 4096 Mar 12 00:05 device_driversdrwxr-xr-x. 2 root root 4096 Mar 12 01:31 pthreadsdrwxr-xr-x. 2 root root 4096 Mar 12 01:32 python[narendra@ubunu]$
Recommended Posts