(1)打开终端
(2)更新apt资源列表,需要输入用户密码
sudo apt update
(3)安装openssh-server
sudo apt install openssh-server -y
(4)SSH服务默认自动启动,保险起见查看SSH服务是否开启
systemctl status ssh
(1)打开终端
(2)更新apt资源列表,需要输入用户密码
sudo apt update
(3)安装openssh-server
sudo apt install openssh-server -y
(4)SSH服务默认自动启动,保险起见查看SSH服务是否开启
systemctl status ssh