查看状态时,发现没有sshd服务 具体操作 1.修改配置文件 # vi /etc/ssh/sshd_config 找到 PermitRootLogin no 找到 PubkeyAuthentication no 取消注释,并将 no 改成 yes 2.开启服务 #service ssh start 3.查看状态 #systemctl status ssh 显示 active (running) 4.xshell测试下 连成功啦! 5.千万记得设置开机自启动 #systemctl enable ssh