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

1.1 KiB
Raw Blame History

title, type, tags, date
title type tags date
Ubuntu 24.04 Enable SSH source
Ubuntu
SSH
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

  • 无冲突