IPv4 vs IPv6
> Listen on only one internet protocol. The SSH daemon listens for incoming connections over both IPv4 and IPv6 by default. Unless you need to SSH into your Linode using both protocols, disable whichever you do not need. This does not disable the protocol system-wide, it is only for the SSH daemon.
Use the option:
AddressFamily inet to listen only on IPv4.
AddressFamily inet6 to listen only on IPv6.
It makes no mention of how you would choose which one to disable. How do I choose?
5 Replies
So I'd check the man page or the online documentation for /etc/ssh/sshd_config and you should see details for those options or use the link above.
lish
By ISP, do you just mean Linode in this case?
The Linode docs say > Linode provides IPv6 support in all of our data centers, and all Linodes are created with one IPv6 address. By default, IPv6 is enabled on all Linodes and the IPv6 address is acquired via Stateless Address Autoconfiguration (SLAAC).
-
Is there no way of checking before I enable IPv4 only?