Report this

What is the reason for this report?

SSH through IPv6 times out

Posted on October 9, 2017

I first noticed the problem that whenever I would try to ssh into my droplet using the domain name, it would take about two minutes. When I used ssh -vvv, I found that it was the IPv6 causing the problem-- It would time out when trying the IPv6 address, then fall to the IPv4 and work fine–

debug1: Connecting to example.com [****:****:***:**::****:8001] port 22.
debug1: connect to address ****:****:***:**::****:**** port 22: Connection timed out
debug1: Connecting to example.com [***.***.**.240] port 22.
debug1: Connection established.

(I generalized the message. It’s not exactly a secret site, though.)

And when I try to connect using only the IPv6 address instead of the domain, it fails. (Works fine with IPv4 address.)

I went through the DO SSH troubleshooting article, but it didn’t make any difference. Where can I go to try to troubleshoot this?

(If it’s relevant, I’m using nginx on this server. I have another server that uses nginx, but it doesn’t have this problem.)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Well, I’m at the point now where I just need to destroy the droplet and restart. I can no longer SSH at all anymore, and I can’t log in through the console, either. Thanks for the help, though.

You probably just got the DNS AAAA record wrong. Check the IPv6 address you put in the DNS AAAA record. That is, make sure it matches whatever the IPv6 address actually is on your ‘droplet’.

And nginx has nothing to do with it.

Also realize that your ip6tables is separate from your iptables (which is IPv4-only), so make sure that any filters allow SSH.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.