ssh-copy-id user@host
一路Enter之后:
cat ~/.ssh/id_rsa.pub
~/.ssh/authorized_keys
700
600
644
Note:一般无需重启SSH服务即可连接