生成密鑰命令 $ ssh-keygen -t rsa -C XXX@XX.com 查看密鑰 $ cd ~/.ssh $ vim id_rsa $ vim id_rsa.pub id_rsa 是私鑰 id_rsa.pub 是公鑰