Linux TCP包装器拒绝user@hostname

Linux TCP包装器拒绝user@hostname,linux,tcp,wrapper,Linux,Tcp,Wrapper,我试图使用TCP包装器拒绝机器上的特定用户 在/etc/hosts.deny中有 署方:tom@192.168.48.184 当我使用用户tom从192.168.48.184进行ssh时,我遗漏了什么?唯一安全的方法是禁用密码/键盘交互登录方法,并在所有tom的授权密钥中添加deny from选项。vi/etc/ssh/sshd\u config 插入一行: DenyUsers用户名1用户名2用户名3用户名4 参考#man sshd#U配置: DenyUsers separated by spa

我试图使用TCP包装器拒绝机器上的特定用户 在/etc/hosts.deny中有

署方:tom@192.168.48.184


当我使用用户tom从192.168.48.184进行ssh时,我遗漏了什么?

唯一安全的方法是禁用密码/键盘交互登录方法,并在所有tom的授权密钥中添加
deny from
选项。

vi/etc/ssh/sshd\u config

插入一行:

DenyUsers用户名1用户名2用户名3用户名4

参考#man sshd#U配置:

DenyUsers
separated by spaces. Login is disallowed for user names that
match one of the patterns. â*â and â?â can be used as wildcards
in the patterns. Only user names are valid; a numerical user ID
is not recognized. By default, login is allowed for all users.
If the pattern takes the form USER@HOST then USER and HOST are
separately checked, restricting logins to particular users from
particular hosts.
保存它并重新启动SSH服务

/etc/init.d/sshd重新启动

阅读更多:

谢谢和问候,
Alok Thaker

编程问题也是如此;这是关于Linux配置的,所以它与so的主题相去甚远,属于