Ubuntu20.04 安装和开启 ssh
# 更新软件下载源sudo apt update#安装ssh服务sudo apt install openssh-server# 开启防火墙ssh的服务端口sudo ufw allow ssh# 查看ssh服务状态systemctl status ssh# 关闭ssh服务systemctl stop ssh# 开启ssh服务systemctl start ssh# 重启ssh服务systemctl restart ssh# 设置开启自启sudo systemctl