Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
顺便说一句
systemctl disable sshd
我不知道它会删除节点,但确实如此。我只想防止它在启动时自动启动。
如何让 sshd 由 systemctl 控制(重新安装没有帮助)?
systemctl disable sshd删除阻止服务在启动时启动的符号链接,它不会删除任何其他内容。如果您想重新启用它,请执行sudo systemctl enable ssh(请注意,它ssh不在sshdDebian/Ubuntu 中,启用后它将创建一个名为 的第二个符号链接sshd)。
sudo systemctl enable ssh
ssh
sshd