# mkdir /root/.ssh

# vim /root/.ssh/authorized_keys

  粘贴公钥,保存退出

# chmod 700 /root/.ssh/

# chmod 600 /root/.ssh/authorized_keys

# setenforce 0

# vim /etc/selinux/config

  SELINUX=enforcing 修改为 SELINUX=disabled