Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-28-2006, 09:32 PM   #1
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
Automated execution of a command on a remote system via SSH

I have a cluster setup at the momment doing distrubuted compiling tasks over 3 computers: my master (localhost) and 2 of my slave nodes on a private subnet. I was going to use OpenPBS and issue tasks in the form of a script: ie shutdown all slaves at once etc, a portable batch system, but my question is this: Without using OpenPBS and the like, how could I get a script or something simuler to open up an ssh session with one of my nodes and issue a command. My slaves are setup using host based authentication with a blank ssh dsa key (so once you gain root on the master it is an instant connection to my slaves).

How would this be possible without physicaly initiating an ssh connection to my slaves and using the keyboard to execute a linux command. You get the idea Thanks a ton.

EDIT: LoL its just as simple as ssh node01 <command> wow I totaly overlooked that

Last edited by GUIPenguin; 02-28-2006 at 09:57 PM.
Old 03-01-2006, 12:23 AM   #2
LQ Newbie
Registered: Jan 2004
Location: sydney .AU
Posts: 25

Rep: Reputation: 15
and here i thought i had finally found a zero-reply post i knew the answer to...

lol indeed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh : remote command execution doesn't work for modifying env variables pypieuvre Programming 10 02-24-2006 10:50 AM
LXer: Adodb Multiple Test Scripts Remote Command Execution ... LXer Syndicated Linux News 0 01-09-2006 07:01 PM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 07:57 AM
Remote Command Execution via mobile phone Sammy2ooo Linux - Software 6 06-27-2003 04:42 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration