Gangmax Blog

自由之思想,独立之精神

Generate SSH RSA Key Pair

| Comments

“SSH key pair” can be used to ssh access. Generating such a pair is as easy as following the below instructions. One key is that you can change the default output directory/file when you’re prompted to do so in line 3.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa): /home/user/temp/sshkey/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/temp/sshkey/id_rsa.
Your public key has been saved in /home/user/temp/sshkey/id_rsa.pub.
The key fingerprint is:
aa:97:b8:61:1e:d6:cd:04:9d:ae:a8:e5:18:6e:f3:06 user@ubuntu
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|       . .       |
|      . o        |
|       o         |
|        S        |
|  E  o *         |
|  ..B.+.o        |
| .oXo+o          |
| .++*o           |
+-----------------+

Comments