Files
nexus/wiki/sources/ubuntu-24-04-enable-ssh.md
2026-04-14 16:02:50 +08:00

1.1 KiB
Raw Blame History

title, type, tags, date, source_file
title type tags date source_file
Ubuntu 24.04 enable SSH source
ssh
ubuntu
2026-04-13 raw/Technical/Home Office/🟠Ubuntu 24.04 enable SSH.md

Summary

  • 核心主题Ubuntu 24.04中SSH服务的启用与配置
  • 问题域:远程服务器访问管理
  • 方法/机制安装OpenSSH Server + systemctl管理服务 + UFW防火墙配置
  • 结论/价值Ubuntu 24.04默认使用ssh.socket socket激活机制需了解与传统ssh.service的区别

Key Claims

  • Ubuntu 24.04默认使用ssh.socket激活机制有连接请求时才启动sshd
  • 安装OpenSSH Server后通过systemctl enable ssh设置开机自启
  • 必须通过UFW允许ssh流量否则防火墙会阻止连接
  • 可通过disable ssh.socket + enable ssh.service切换回传统运行模式

Key Concepts

Key Entities

Connections

Contradictions