[root@buddytj-10 .ssh]# ssh-keygen -t rsa #rsa算法的证书 Generating public/private rsa key pair. (以下一路回车) Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists. Overwrite (y/n)? y (因为我的证书已存在,覆盖即可) 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: c1:26:cc:88:2b:05:dd:c3:6b:1e:78:5d:da:9c:da:8a 证书就生成了 id_rsa (私钥)|& id_rsa.pub (公钥)