ssh-keygen -t rsa
Generatingpublic/private rsa key pair.
建议直接回车使用默认路径
Enter file in which to save the key (/root/.ssh/id_rsa):
输入密码短语(留空则直接回车)
Enter passphrase (empty forno passphrase):
重复密码短语
Enter same passphrase again:
Your identification has been saved in/root/.ssh/id_rsa.
Yourpublic key has been saved in/root/.ssh/id_rsa.pub.
The key fingerprint is:
aa:8b:61:13:38:ad:b5:49:ca:51:45:b9:77:e1:97:e1 root@localhost.localdomainThe key's randomart image is:
+--[ RSA 2048]----+
| .o. |
| .. . . |
| . . . o o |
| o. . . o E |
|o.= . S . |
|.*.+ . |
|o.* . |
| . + . |
| . o. |
+-----------------+
test