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.
- Become a super user.
sudo su -
- Make sure the SSH server and client are installed.
- RHEL/CentOS 7
- RHEL/CentOS/RockyLinux 8
- Ubuntu 22.04
yum install -y openssh-server openssh-clients
dnf install -y openssh-server openssh-clients
apt install -y openssh-server openssh-client
- Create the asymmetric key pairs.
ssh-keygen -b 4096 -t rsa
- Copy the SSH public key to the remote server.
ssh-copy-id -i ~/.ssh/id_rsa.pub root@node01.clemlab.local
- Test passwordless access via SSH.
ssh root@node01.clemlab.local