ssh免密:
[root@localhost ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
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:HWz2NcfmyRbhP/JTibcoFzLkrdRtM259Yta6fhsKzR4 root@localhost.localdomain
The key's randomart image is:
+---[RSA 3072]----+
| . |
| . ...|
| =. oo+|
| +ooo.+==|
| S .=.* %+|
| . * X.B|
| + E+B+|
| =o+o=|
| +++.|
+----[SHA256]-----+
[root@localhost ~]#
[root@localhost ~]# for i in {1..9}; do ssh-copy-id root@10.5.220.10$i;done
[root@localhost ~]#