This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

This web page is no longer maintained. Information presented here exists only to avoid breaking historical links.
The Project stays maintained, and lives on: see the Linux-HA Reference Documentation.
To get rid of this notice, you may want to browse the old wiki instead.

1 February 2010 Hearbeat 3.0.2 released see the Release Notes

18 January 2009 Pacemaker 1.0.7 released see the Release Notes

16 November 2009 LINBIT new Heartbeat Steward see the Announcement

Last site update:
2017-12-17 09:35:28

How to make OpenSSH allow you to login as root across the network without a password

  • All our scripts run ssh -l root, so you don't have to do any of your testing logged in as root on the "Exerciser" (test controlling/monitoring machine). Grab your key from the Exerciser.

    Take the single line out of ~/.ssh/identity.pub, or ~/.ssh/id_dsa.pub, or ~/.ssh/id_rsa.pub, and put it into root's authorized_keys file on all cluster machines. Run this command on each of the cluster machines as root:

      ssh -v -l myid exerciser cat /home/myid/.ssh/id_dsa.pub \
            >> ~root/.ssh/authorized_keys
      
       # with old (version 1) ssh, this would be:
      ssh -v -l myid exerciser cat /home/myid/.ssh/identity.pub \
            >> ~root/.ssh/authorized_keys
    You will probably have to provide your password, and possibly say "yes" to some questions about accepting the identity of the test machines. You must also do the corresponding update for the testmonitor machine itself as root:
      cat /home/myid/.ssh/identity.pub >> ~root/.ssh/authorized_keys
    To test this, try this command from the testmonitor-machine for each of your testmachines, and for the testmonitor-machine itself.
      ssh -l root othermachine
    If this works, without prompting for a password, you're in business... If not, you need to look at the ssh/openssh documentation and the output from

    the -v options above. You may need to enable root logins (PermitRootLogins yes in /etc/ssh/sshd_config).


CategoryHowto