在Debian系统中,安装SSH服务后,你需要启动并设置开机自启
- 首先,确保你已经安装了OpenSSH服务器。如果没有,请使用以下命令安装:
sudo apt-get update sudo apt-get install openssh-server
- 启动SSH服务:
sudo systemctl start ssh
- 设置SSH服务开机自启:
sudo systemctl enable ssh
- 检查SSH服务状态:
sudo systemctl status ssh
现在,SSH服务应该已经启动并设置为开机自启。你可以使用ssh
命令连接到你的Debian系统。