步骤如下:
(1)A主机生成配对秘钥
[root@18c setup]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
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:
fb:00:4f:76:c5:73:da:ef:3a:e6:a4:b2:66:f9:94:26 root@18c
The key's randomart image is:
+--[ RSA 2048]----+
| |
| . |
| + . |
| . = |
| . S . . . |
| = o . . |
| + E.+ . .|
| o=+ oo. |
| oo+oooo.|
+-----------------+
[root@18c setup]#