环境: Debian 13 配置文件 /etc/ssh/sshd_config 额外配置 Include /etc/ssh/sshd_config.d/*.conf 会加载该目录下的所有 .conf 文件,优先级可能覆盖主配置(后加载的生效) 修改配置项 #允许 root 登录,但禁止使用密码,只能用 SSH 密钥登录 PermitRootLogin prohibit-password #每个连接…
环境: Debian 13 配置文件 /etc/ssh/sshd_config 额外配置 Include /etc/ssh/sshd_config.d/*.conf 会加载该目录下的所有 .conf 文件,优先级可能覆盖主配置(后加载的生效) 修改配置项 #允许 root 登录,但禁止使用密码,只能用 SSH 密钥登录 PermitRootLogin prohibit-password #每个连接…
讨论
登录后参与讨论
还没有评论,来说第一句吧。