Howto Use SSH To Run Command On A Remote Machine
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...
- Howto: Linux NFSv4 distributed file system access tutorial
- Welcome to Linux books blog
- Linux Administrative tasks LPI exam tutorial
- OpenSSH PKI support coming soon
- Download of the day: Bazaar Distributed Version Control System
Discussion on This Article:
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!
Tags: command_execution, distributed_management, expect_command, scripts, secure_shell, shell_script, special_tools, tentakel_command, unix_servers ~ Last updated on: August 17, 2007



Thank you
Good job
good article
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
Thx a lot its very nice and usefull info