在sshd_config中覆盖DenyGroups
我有一个sshd_config文件,configuration为不允许组nologin用户ssh进入此服务器( DenyGroups nologin )。 虽然我在这个组中有几个用户,但我确实希望为其中一个用户覆盖(我们称之为用户greg )。 我尝试添加AllowUsers greg到sshd_config文件,但似乎没有工作。 是否有可能做到这一点? sshd_config如下所示: AllowTcpForwarding no ClientAliveCountMax 1 ClientAliveInterval 300 LoginGraceTime 1m PermitRootLogin no Protocol 2 RSAAuthentication no Subsystem sftp /usr/libexec/openssh/sftp-server UsePAM yes X11Forwarding yes DenyGroups nologin LogLevel INFO MaxAuthTries 4 IgnoreRhosts yes HostBasedAuthentication no PermitEmptyPasswords no PermitUserEnvironment no Ciphers aes128-ctr,aes192-ctr,aes256-ctr 添加“AllowUsers greg”(greg是login组的成员)不允许greg到ssh。