I am using sles-12 server and i am trying to restrict ssh access to my server to my pc alone. I have tried to use tcpwrappers and it's not working..!!. I am able to ssh to the server from any IP in my local network.
I have tried different formats from man page to see if anything is working but to no effect. Here is the files I have used for setting the wrappers and commands which might be useful
[root@myserver ~]# cat /etc/hosts.allow sshd:172.19.112.120 [root@myserver ~]# cat /etc/hosts.deny sshd:ALL [root@myserver ~]# tcpdmatch -d -i /etc/xinetd.conf sshd 126.96.36.199 --> another server client: hostname paranoid client: address 188.8.131.52 server: process sshd access: granted --> NOT OK [root@myserver ~]# [root@myserver ~]# ldd /usr/sbin/sshd | grep 'libwrap' libwrap.so.0 => /lib64/libwrap.so.0 (0x00007fa2b71f7000)
PS: IP table restrictions are working fine. But I can't use it in my scenario. and no specific configurations are done in /etc/ssh/ssh_config