生成密钥 ssh-keygen -t rsa -C "XXX" copy公钥 pbcopy < ~/.ssh/id_rsa.pub 转载于:https://my.oschina.net/maczhao/blog/528686