我将dropbear作为SSH守护进程运行在Debian (实际上是Raspbian)上。我试着设置
# /etc/hosts.allow
dropbear:192.168.1.1
# my static ip from which I SSH connect to the device和
# /etc/hosts.deny
ALL:ALL
# block all others然后我重新启动了整个设备。我仍然可以从不同的IP地址,甚至从远程进入设备SSH。是配置文件错误了,还是dropbear不支持这两个文件?
发布于 2014-05-13 00:52:17
发布于 2014-05-12 19:35:44
尝试:
# /etc/hosts.deny
sshd:ALL:spawn /bin/echo the ip %h tried to access `/bin/date`>> /var/log/ssh.log和
# /etc/hosts.allow
sshd:192.168.1.1如果不工作,用这种方法再试一次。
# /etc/hosts.deny
dropear:ALL:spawn /bin/echo the ip %h tried to access `/bin/date`>> /var/log/ssh.log和
# /etc/hosts.allow
dropbear:192.168.1.1并检查dropbear是否支持tcp/wrappers。
ldd /path/to/dropbear查找libwrap.so.0→/lib/libwrap.so.0
https://unix.stackexchange.com/questions/129092
复制相似问题