1、在机器上执行ssh-keygen命令,生成公私钥;生成的时候会提示文件保存路径,以及私钥密码,直接回车就行;

pi@raspberrypi:~/Desktop $ ssh-keygen -t rsa -C '***@qq.com'  #这里填写自己的邮件
Generating public/private rsa key pair.
Enter file in which to save t[......]

阅读全文