1. 生成ssh key 输入命令: ssh-keygen -t rsa -C "xxxxx@xxxxx.com" 注:"xxxxx@xxxxx.com"是个人邮件 2. 查看ssh key 通过下面命令查询 cat ~/.ssh/id_rsa.pub 3.复制以ssh-rsa开头的