[root@VM-12-13-centos step]# cd ~
[root@VM-12-13-centos ~]# pwd
/root
[root@VM-12-13-centos ~]# ssh-keygen -t rsa -C "15150590000@163.com"
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:
SHA256:4zi9IBcTt55k25V27rGGGzdCGOb3LmGnspXtWoigq/c 15150590000@163.com
The key's randomart image is:
+---[RSA 3072]----+
| |
| |
| . . o |
| o + o . |
| o S o * . |
| @ * *oB. |
| . * * o.*=B |
| o.+ ...+Oo. |
| .o..E .oo==o |
+----[SHA256]-----+
[root@VM-12-13-centos ~]# ll
total 8
drwxr-xr-x 3 root root 4096 Jun 8 09:32 logs
drwxr-xr-x 3 root root 4096 Jun 8 09:32 nacos
[root@VM-12-13-centos ~]# ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .cache .config .cshrc .gitconfig logs nacos .npm .npmrc .oracle_jre_usage .pip .pydistutils.cfg .ssh .tcshrc .viminfo .wget-hsts
[root@VM-12-13-centos ~]# cd .ssh/
[root@VM-12-13-centos .ssh]# ll
total 12
-rw------- 1 root root 2602 Jun 8 16:02 id_rsa
-rw-r--r-- 1 root root 573 Jun 8 16:02 id_rsa.pub
-rw-r--r-- 1 root root 185 Jun 8 15:47 known_hosts
[root@VM-12-13-centos .ssh]#