How to prevent SSHD to listen on an address family
March 1, 2014
· Admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
SSH
Ubuntu 12.04
It is possible to control on which address family sshd will listen to. In /etc/ssh/sshd_config, simply add
AddressFamily any
to listen to IPv4 and IPv6 addresses. This is the default. Alternatively, add one of these to listen only to IPv4 (inet) or IPv6 (inet6) respectively.
AddressFamily inet AddressFamily inet6
Copyright 2012–2026, Claude "Tryphon" Théroux