安装ssh并开启 sudo apt-get install openssh-server sudo /etc/init.d/ssh start 设置允许/禁止开机自启 sudo systemctl enable ssh sudo systemctl disable ssh 打开/关闭ssh sudo systemctl start ssh sudo systemctl stop ssh