# 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
时间: 2024-10-09 20:47:22
# 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