linux-g50f:/ # ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): key-gen-key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in key-gen-key.
Your public key has been saved in key-gen-key.pub.
The key fingerprint is:
79:0f:14:d5:9c:83:5d:ea:c8:f4:93:49:87:79:eb:a1 root@linux-g50f
The key's randomart image is:
+--[ RSA 2048]----+
| ...= o.|
| .. *+ |
| . . =.o|
| o o = =.|
| S o o *o |
| . o o..|
| .E . |
| |
| |
+-----------------+
此時會在當前目錄下生成兩個文件產品密鑰是什么樣子:
-rw------- 1 root root 1743 Aug 3 17:10 key-gen-key
-rw-r--r-- 1 root root 397 Aug 3 17:10 key-gen-key.pub
by Mike Sun @