Polls

Topics

Howto Use SSH To Run Command On A Remote Machine

Posted by Vivek on Friday August 17, 07 @5:50 am

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

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in...

Discussion on This Article:

  1. humayun Says:

    Thank you

  2. charles Says:

    Good job

  3. Cayu Says:

    good article

  4. mariuz Says:

    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

  5. Gizmoya Says:

    Thx a lot its very nice and usefull info

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , ~ Last updated on: August 17, 2007

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.