我需要在两个端口上监听 SSH:22 用于托管管理员访问,26 用于常规访问。我想在 26 上禁止 root 登录,并禁止端口 22 的除内部 IP 之外的所有其他 IP。后者可以使用 iptables 规则来完成,但我不知道前者。有任何想法吗?
linux ssh
linux ×1
ssh ×1