打开终端 输入ssh-keygen,然后系统提示输入文件保存位置等信息,连续敲三次回车即可,生成的SSH key文件保存在中~/.ssh/id_rsa.pub 转载于:https://www.cnblogs.com/liujiaq/p/5850492.html