LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-28-2006, 08:32 PM   #1
GUIPenguin
Member
 
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 08:57 PM.
 
Old 02-28-2006, 11:23 PM   #2
andrewlorien
LQ Newbie
 
Registered: Jan 2004
Location: sydney .AU
Posts: 23

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

lol indeed.
 
  


Reply


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 09:50 AM
LXer: Adodb Multiple Test Scripts Remote Command Execution ... LXer Syndicated Linux News 0 01-09-2006 06:01 PM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 06:57 AM
Remote Command Execution via mobile phone Sammy2ooo Linux - Software 6 06-27-2003 03:42 AM


All times are GMT -5. The time now is 04:48 PM.

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