Sample Header Ad - 728x90

How can I deny all IPv6 ssh connection

0 votes
2 answers
2525 views
I want to disable all ssh connection from both IPv4 and IPv6 except certain IPs. I can set /etc/hosts.deny to deny all IPv4 ssh connection:
sshd: ALL
How to apply to IPv6? I tried below, and fail:
sshd: [*]
and
sshd: [ALL]
My sshd server version: PKIX-SSH 12.1, OpenSSH_8.0p1, OpenSSL 1.0.2g-fips 1 Mar 2016 And PKIX is configured with --with-tcp-wrappers
Asked by Yu-Ting Chen (51 rep)
Jul 29, 2019, 06:36 AM
Last activity: May 14, 2025, 05:07 PM