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

37 lines
1.1 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-14
---
## Source File
- [[raw/Home Office/Ubuntu 24.04 enable SSH.md]]
## Summary
- 核心主题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
- 安装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
- [[SSH服务配置]]Ubuntu 24.04 socket vs service模式
- [[Socket激活]]按需启动SSH守护进程
## Key Entities
- [[Ubuntu2404]]Ubuntu 24.04 Server
## Connections
- [[Ubuntu-24.04-Enable-SSH]] ← documents ← [[SSH服务配置]]
## Contradictions
- 无冲突