#查看是否启动了服务 sudo ps -e |grep ssh #查看是否启动 systemctl status ssh #安装ssh sudo apt-get install openssh-server systemctl restart sshd
sudo passwd root
vi /etc/ssh/sshd_config PermitRootLogin yes