title, type, tags, date
| title |
type |
tags |
date |
| Ubuntu 24.04 Enable SSH |
source |
|
2025-03-14 |
Source File
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
Key Entities
Connections
Contradictions