Skip to main content
Version: 1.1.6.0

Password-less SSH

About

If you want Ambari Server to automatically install Ambari agents on all nodes in your cluster, you must configure passwordless SSH connections from the server.

Etapes

tip

It is possible to use a non-root SSH account, if that account can run sudo without entering a password.

  1. Become a super user.
sudo su -
  1. Make sure the SSH server and client are installed.
yum install -y openssh-server openssh-clients
  1. Create the asymmetric key pairs.
ssh-keygen -b 4096 -t rsa
  1. Copy the SSH public key to the remote server.
ssh-copy-id -i ~/.ssh/id_rsa.pub root@node01.clemlab.local
  1. Test passwordless access via SSH.
ssh root@node01.clemlab.local