登陆:192.168.1.18
[rd@5ljzd8ppi2avyaqh ~]$ ssh-keygen -t rsa
然后一直按 Enter 键,执行完之后如下结果
Generating public/private rsa key pair.
Enter file in which to save the key (/home/rd/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/rd/.ssh/id_rsa.
Your public key has been saved in /home/rd/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:E7OGIuTiUm8o7VfhYjguMjE5hdpZjhC/CHQHB0VzS/s rd@5ljzd8ppi2avyaqh.novalocal
The key's randomart image is:
+---[RSA 2048]----+
| o== o |
|.. ...+ o |
|.+o . oo |
|+oo . ...+ |
|+*+B....SE |
|O+B++.o. . |
|o*oooo |
|=o... |
|.o.. |
+----[SHA256]-----+