[root@node-etl-01 ~]# ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
Generating public/private rsa key pair.
Created directory '/root/.ssh'.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:lmqUjeCUf26KcxIosHbIaGKygMq7YNE3MCt+QXWz0lU root@node-etl-01
The key's randomart image is:
+---[RSA 3072]----+
| . o ..E |
| ..o + |
| ++. o |
|. oo+o.+ . |
|=+.=.o= S |
|X*+.+..= |
|@=.. .o o |
|=.. oo.o |
| oo .+. |
+----[SHA256]-----+
[root@node-etl-01 ~]# ssh-copy-id node-etl-01
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
The authenticity of host 'node-etl-01 (192.168.32.128)' can't be established.
ECDSA key fingerprint is SHA256:SITNrVHcy8RA9PwQZvziwSmsR8X1y7TRyz3sAcXtD9w.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
The authenticity of host 'node-etl-01 (192.168.32.128)' can't be established.
ECDSA key fingerprint is SHA256:SITNrVHcy8RA9PwQZvziwSmsR8X1y7TRyz3sAcXtD9w.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@node-etl-01's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'node-etl-01'"
and check to make sure that only the key(s) you wanted were added.
[root@node-etl-01 ~]# yum -y install openssh-clientsFailed to set locale, defaulting to C.UTF-8Last metadata expiration check: 10:22:29 ago on Mon Nov 1 09:17:41 2021.Package openssh-clients-8.0p1-5.el8.x86_64 is already installed.Dependencies resolv.