38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
---
|
||
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管理对比:旧版直接启动sshd,24.04默认使用socket activation按需启动
|