LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-29-2011, 01:17 PM   #1
Cerephim
Member
 
Registered: Mar 2005
Location: Dayton, Ohio
Distribution: CentOS
Posts: 49

Rep: Reputation: 0
running command on another box; passwordless


I have two load balancing boxes... One primary (box1) and one backup/failover (box2).

I want to make sure the heartbeat is running on both boxes via a script.
While I'm on box1, I want to run as any user:

ssh box2 service pulse status

and not have box2 ask for a password.

Any ideas?
 
Old 07-29-2011, 01:42 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

You have to configure key based authentication for that.

Have a look at the following link: http://www.linuxproblem.org/art_9.html
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passwordless SFTP between Unix box and Windows dev_d Linux - Networking 3 03-31-2010 07:08 AM
Running Virtual box cjrissler Linux - Newbie 5 01-11-2010 11:05 PM
Does Kornshell wait until one command completes before running the next command? ShaqDiesel Programming 4 09-10-2008 11:49 PM
Passwordless SSH works... but not with a command Zxian Linux - Networking 5 05-23-2008 03:59 PM
So I got my box running smoothly... chingasman Linux - General 3 01-31-2003 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration