1.更新源
sudo apt update && sudo apt upgrade -y
2.安装SSH(OpenSSH)
sudo apt install openssh-server -y
3.使用systemctl启动SSH服务
sudo systemctl enable --now ssh
4.检查ssh状态
sudo systemctl status ssh
5.检查防火墙状态
sudo ufw status
6.防火墙放行SSH端口
sudo ufw allow 22
标签:22.04,sudo,apt,systemctl,SSH,Ubuntu,ssh
From: https://www.cnblogs.com/fanqisoft/p/17367639.html