1、ssh-keygen -t rsa -C "xxx" (x x x 为创建时的邮箱)
2、提示出:Enter file in which to save the key (/Users/jumpapp1/.ssh/id_rsa): jump(公钥保存路径)
Generatingpublic/privatersa key pair.Enter file in which to save the key (/Users/abc/.ssh/id_rsa): (要求输入保存路径,也可不输入)
3、输入两次密码(可以直接回车,不用输入)
Enter passphrase (emptyforno passphrase):
Enter same passphrase again:
4、cat jump.pub (查看公钥)
5、复制
网友评论