Files
nexus/wiki/sources/Ubuntu-24.04-enable-SSH.md
weishen f9ac3145ab feat(wiki): ingest remaining subdirectories batch (51 files)
- 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去重, 混合搜索等
2026-04-14 20:48:34 +08:00

41 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Ubuntu 24.04 enable SSH"
type: source
tags: [ssh, ubuntu, 运维]
date: 2025-10-01
---
## Source File
- [[raw/Home Office/Ubuntu 24.04 enable SSH.md]]
## Summary
- 核心主题:在 Ubuntu 24.04 中启用 OpenSSH Server
- 问题域:服务器远程访问配置
- 方法/机制apt 安装 openssh-serversystemctl 管理服务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
- [[OpenSSH]]SSH 协议的开源实现
- [[Socket 激活]]:按需启动服务的机制
- [[UFW]]Ubuntu 防火墙管理工具
## Key Entities
- [[Ubuntu]]Linux 发行版
## Connections
- [[Ubuntu]] ← installs ← [[OpenSSH]]
- [[UFW]] ← controls ← [[OpenSSH]]
## Contradictions
-