37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
---
|
||
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
|
||
- 无冲突
|