1.生成SSH key pair(公钥) $ ssh-keygen -t rsa -P "" 2.生成的rsa公匙追加到 $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys