centos启用root登陆重置密码#sudo -ipasswd # 启用 ssh 登录service sshd restartCopy修改配置#vi /etc/ssh/sshd_configCopyPermitRootLogin yes // 默认为no,需要开启root用户访问改为yes PasswordAuthentication yes // 默认为no,改为yes开启密码登陆