- Others: ChinaTextbook, Obsidian笔记系列, YouTube Channel ID, TikTok PM Django - Skills: GOG CLI, Last30Days, baoyu-skills - Vibe Coding: Cursor 2.0, Trae远程开发, Vibe-Kanban+OpenCode, vibe coding经验 - 微信公众号: 养虾日记1-5, AI时代赚钱 - 跨境电商: TikTok数据抓取, 选品策略, Superset Dashboard - AI目录补充: 20个文件 Source pages: 51 Entities: TapXWorld, VibeKanban, OpenCode, Trae, SourceGrounding等 Concepts: 自举Meta生成, 5大设计原则, MD5去重, 混合搜索等
1.3 KiB
1.3 KiB
title, type, tags, date
| title | type | tags | date | |||
|---|---|---|---|---|---|---|
| Ubuntu 24.04 enable SSH | source |
|
2025-10-01 |
Source File
Summary
- 核心主题:在 Ubuntu 24.04 中启用 OpenSSH Server
- 问题域:服务器远程访问配置
- 方法/机制:apt 安装 openssh-server,systemctl 管理服务,UFW 防火墙配置
- 结论/价值:Ubuntu 24.04 默认使用 socket 激活模式,需要额外配置才能实现开机自启
Key Claims
- Ubuntu 24.04 默认使用 ssh.socket 激活机制(按需启动),而非传统 ssh.service
- 安装命令:
sudo apt install openssh-server -y - 启用开机自启:
sudo systemctl enable ssh(会启用 socket 模式) - 如需切换回传统模式:先 disable ssh.socket,再 enable ssh.service
- 自定义端口建议通过
sudo systemctl edit ssh.socket修改,而非仅修改 sshd_config
Key Quotes
"24.04 默认使用 Socket 激活模式" — Ubuntu 24.04 SSH 管理的关键变化
Key Concepts
Key Entities
- Ubuntu:Linux 发行版
Connections
Contradictions
- 无