cd /etc/ssh/vi sshd_config找到 PermitRootLogin = yes (允许root用户远程登录)找到 PasswordAuthentication = yes (允许密码登录)systemcatl restart sshd (重启sshd服务)