Linux学习笔记:Ubuntu安装ssh用于远程

sudo apt update sudo apt install openssh-server 更新安装包并安装ssh
sudo systemctl start ssh 开启ssh服务 sudo ufw allow ssh 防火墙放行 sudo systemctl enable ssh 开机自启 sudo systemctl status ssh 检查ssh状态

注意Ubuntu无法直接已root账号登录要使用普通账号然后提权,如果要root用户登录需要修改配置文件

posted @ 2026-01-04 17:17  Actorw  阅读(8)  评论(0)    收藏  举报