I noticed that my SSH session is not usable (random connection errors, hugh delay, etc.) when I'm connected by IPv6. I'm not connecting to my server by IPv4/IPv6 addresses directly. I use my domain name which has valid A and AAAA DNS records. I noticed that I get randomly connected by either IPv4 or IPv6.
A simple solution would be to just disbale IPv6 in the ssh config, but I think that's a dirty solution. I would rather know:
- Why get I connected by IPv4/IPv6 randomly.
- Why is only a session by IPv6 unstable?