LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Execute commands or scripts on a remote server (https://www.linuxquestions.org/questions/linux-software-2/execute-commands-or-scripts-on-a-remote-server-564853/)

gurl4sh25 06-27-2007 10:21 AM

Execute commands or scripts on a remote server
 
Hi Guys,

Any one knows how to execute a command or script on a remote server?
Let say i have a linux client and a linux remote server, i want to run my script on that remote server using my linux client.

Regards,
gurl4sh25

acid_kewpie 06-27-2007 10:30 AM

just ssh to the box and run it? :confused:

jeenam 06-27-2007 10:32 AM

ssh user@host <command>

e.g. ssh user@host sh /path/to/script/to/execute

gurl4sh25 06-27-2007 09:04 PM

Thanks guys, didn't know that the command ssh itself can execute a script or command. Cheers! =)


All times are GMT -5. The time now is 10:19 AM.