How to prevent SSHD to listen on an address family

By ctherouxNo Comments

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

SSH, Ubuntu, Ubuntu 11.04, Ubuntu 11.10, Ubuntu 12.04, Unix

Blue Taste Theme created by Jabox