$ ssh-keygen -t rsa -C "[email protected]"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:
92:41:73:6d:ba:03:bf:36:f8:ab:a2:90:0c:9c:a1:85 [email protected]The key's randomart image is:
+--[ RSA 2048]----+
| o .. || . . o o ||E.. . o ||o.o .o. ||oo ooS. ||o. .+ ||o. . o || . . . + || .. ..+oo |+-----------------+