包含标签 linux articles

Ubuntu开箱使用指南(新手篇)

Ubuntu20.04开启ssh服务 1 安装ssh服务 apt-get install openssh-server // 开启防火墙ssh的服务端口 ufw allow ssh // 查看ssh服务状态 systemctl status ssh // 关闭ssh服务 systemctl stop ssh // 开启ssh服务 systemctl start ssh // 重启ssh服务 systemctl restart ssh // 设置开启自启 sudo systemctl enable ssh // 关闭开机自启 sudo systemctl disable ssh 修改root用户ssh登录配置 nano /etc/ssh/sshd_config 将port 22前面……

Continue reading