建议使用 ssh-copy-id -i ~/.ssh/id_rsa.pub user@server,既方便也不容易出错
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server