Howto Use SSH To Run Command On A Remote Machine

by on August 17, 2007 · 7 comments· LAST UPDATED August 17, 2007

in , ,

This article examined a simple, but powerful, method to run commands on a remote machine using combination of ssh and a shell script:

Use Secure Shell (SSH) to run commands on remote UNIX systems and, with some simple scripts, put together a system that enables you to manage many systems simultaneously from one machine without having to log in directly to the machines themselves. Also examine the basics of a distributed management system and some scripts and solutions using the technique.

I have already covered how to execute commands on multiple Linux or UNIX servers via a shell script. The disadvantage of shell script is commands do not run in parallel on all servers. However, several tools exist to automate this procedure in parallel. With the help of tool called tentakel (highly recommended) , you run distributed command execution. Also, you can execute commands on multiple Linux or UNIX servers using special tools such as multixterm from expect project.

=> Distributed administration using SSH

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 7 comments… read them below or add one }

1 humayun August 28, 2007 at 7:04 am

Thank you

Reply

2 charles September 7, 2007 at 9:20 am

Good job

Reply

3 Cayu September 10, 2007 at 2:55 pm

good article

Reply

4 mariuz January 17, 2008 at 3:31 pm

if you have python2.5 like on my ubuntu system
you must install from svn

http://sourceforge.net/tracker/index.php?func=detail&aid=1581326&group_id=76769&atid=548189
“I checked in a fix. You can try it out by checking out the development
version of tentakel using the following command:”

svn co http://svn.tuebingen.mpg.de/tentakel/trunk/
cd trunk/tentakel
make ; make install

Reply

5 Gizmoya April 28, 2008 at 12:35 pm

Thx a lot its very nice and usefull info

Reply

6 Boby Thomas March 24, 2009 at 10:51 am

Good information. Thanks

Reply

7 Lalit Mohan April 5, 2011 at 5:29 am

How to run sequence of command through ssh

Reply

Leave a Comment

Tagged as: , , , , , , , ,

Previous post:

Next post: