feat(wiki): complete all remaining 85 raw files ingestion (auto-script)

This commit is contained in:
2026-04-14 21:07:18 +08:00
parent 67baf7b39d
commit 36666fc9c4
161 changed files with 5572 additions and 368 deletions

View File

@@ -1,40 +1,36 @@
---
title: "Ubuntu 24.04 enable SSH"
title: "Ubuntu 24.04 Enable SSH"
type: source
tags: [ssh, ubuntu, 运维]
date: 2025-10-01
tags: [Ubuntu, SSH]
date: 2025-03-14
---
## 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 激活模式,需要额外配置才能实现开机自启
- 核心主题Ubuntu 24.04启用SSH服务及配置
- 问题域:Ubuntu 24.04默认使用socket激活机制与旧版本不同
- 方法/机制apt install openssh-server + systemctl enable/start ssh
- 结论/价值Ubuntu 24.04 SSH配置要点——socket vs service模式切换
## 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 管理的关键变化
- 安装sudo apt install openssh-server -y
- 启动sudo systemctl start ssh
- 开机自启sudo systemctl enable ssh
- Ubuntu 24.04默认使用socket激活按需启动可用ssh.socket检查
- 切换回传统模式:systemctl disable ssh.socket && systemctl enable ssh.service
- 防火墙sudo ufw allow ssh
## Key Concepts
- [[OpenSSH]]SSH 协议的开源实现
- [[Socket 激活]]:按需启动服务的机制
- [[UFW]]Ubuntu 防火墙管理工具
- [[SSH服务配置]]Ubuntu 24.04 socket vs service模式
- [[Socket激活]]:按需启动SSH守护进程
## Key Entities
- [[Ubuntu]]Linux 发行版
- [[Ubuntu2404]]Ubuntu 24.04 Server
## Connections
- [[Ubuntu]] ← installs ← [[OpenSSH]]
- [[UFW]] ← controls ← [[OpenSSH]]
- [[Ubuntu-24.04-Enable-SSH]] ← documents ← [[SSH服务配置]]
## Contradictions
-
-冲突