add ssh key to server 自己的 public ssh key cat ~/.ssh/id_rsa.pub # 复制 pbcopy < ~/.ssh/id_rsa.pub cat ~/.ssh/id_rsa.pub | pbcopy 添加到服务器这个文件 ~/.ssh/authorized_keys https://adamdehaven.com/blog/how-to-generate-an-ssh-key-and-add-your-public-key-to-the-server-for-authentication/