当前位置: 首页 > news >正文

Ubuntu 24.04.2 允许 root 登录桌面、 ssh 远程、允许 Ubuntu 客户机与主机拖拽传递文件

允许 root 登录桌面

修改 /etc/pam.d/gdm-autologin , /etc/pam.d/gdm-password
# 以注释掉 auth required pam_succeed_if.so user != root quiet_success

允许 root 通过 ssh 登录

修改 /etc/ssh/sshd_config

...
#PermitRootLogin prohibit-password
PermitRootLogin yes
...

自动登录 root

修改 /etc/gdm3/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

允许 Ubuntu 客户机与主机拖拽传递文件

  1. sudo apt install open-vm-tools
  2. sudo apt install open-vm-tools-desktop
  3. 修改 /etc/gdm3/custom.conf
    WaylandEnable=false

安装 ssh

  1. sudo apt install openssh-server
  2. 进入 /etc/ssh/sshd_config 改 PermitRootLogin yes
  3. sudo systemctl restart sshd

http://www.mrgr.cn/news/94089.html

相关文章:

  • Redis-缓存穿透击穿雪崩
  • 基于Harbor构建docker私有仓库
  • 静态路由实验
  • 【性能测试入门_01性能测试jmeter基础实操场景详解】
  • 使用 React 和 Ant Design 处理 Excel 和 CSV 文件
  • Linux内核实时机制19 - RT调度器2 - 更新时间 update_curr_rt
  • MySQL中有哪些索引
  • 学习C2CRS Ⅱ (Contrastive Learning Pretraining)
  • MoonSharp 文档三
  • LINUX网络基础 [九] - IP协议
  • LINUX 磁盘和文件系统管理 (二)
  • 【redis】string应用场景:缓存功能和计数功能
  • Vue 侧边栏导航栏 el-menu单个item和多个item
  • 编译skia
  • linux | Vim 命令快捷操作
  • 【漫话机器学习系列】132.概率质量函数(Probability Mass Function, PMF)
  • 搜索 之 组合问题
  • 知识库全链路交互逻辑
  • Linux - 磁盘分区、挂载
  • 自动化测试介绍及学习路线