如果在安装Centos stream 9的时候没有勾选允许root用户使用密码进行ssh登录,安装后使用xshell等远程工具是不能登录虚拟机或者服务器的。解决vim /etc/ssh/sshd_config 1.新增一行配置 PermitRootLogin yes 2.重启ssh systemctl restart sshd