Files
nexus/wiki/sources/Ubuntu-24-enable-SSH.md

38 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: [ubuntu, ssh, 运维]
date: 2025-03-06
---
## Source File
- [[raw/Home Office/Ubuntu 24.04 enable SSH.md]]
## Summary
- 核心主题Ubuntu 24.04中启用SSH服务的步骤
- 问题域Ubuntu 24.04默认使用ssh.socket激活机制与旧版本不同
- 方法/机制安装openssh-server → systemctl start ssh → systemctl enable ssh
- 结论/价值Ubuntu 24.04的SSH启用方式与旧版本略有不同需注意socket activation机制
## Key Claims
- Ubuntu 24.04默认使用ssh.socket按需启动非传统sshd守护进程
- 安装命令sudo apt update && sudo apt install openssh-server -y
- 启动命令sudo systemctl start ssh
- 开机自启sudo systemctl enable ssh
- 若status显示inactive别慌这是socket activation的正常表现
## Key Concepts
- [[SSH]][TODO] 安全外壳协议
- [[socket activation]]Ubuntu 24.04的按需启动机制
- [[openssh-server]]SSH服务端软件
## Key Entities
- [[Ubuntu]]24.04 Server操作系统
## Connections
- [[SSH]] ← 远程访问协议 ← Ubuntu
- [[socket activation]] ← 启动机制 ← Ubuntu 24.04 SSH
## Contradictions
- 与旧版Ubuntu SSH管理对比旧版直接启动sshd24.04默认使用socket activation按需启动