I have configured a debian server, hosting a website, for FTPS access using vsftpd. Port 22, SSL enabled. When testing the connection with FileZilla, I successfully connect if I put the server's IP address in the host field. If I put the wesbsite's hostname, it fails. The server is under a private router with dynamic IP. Therefore, I am using a dynamic DNS service provided by Dynu DNS (my internet provider gives me the possibility to connect the router to Dynu, in order to let the router inform Dynu when the IP has changed). DNS records in Dynu are the A record, updated by my router, and the AAAA record (updated by Dynu).

Hostname Type Data
*.myhostname A 12.34.567.89
*.myhostname AAAA [IPv6 address]

And in FileZilla:

Host Connection Status FileZilla logs
12.34.567.89 Success Command: open "[email protected]" 22
Trace: Looking up host "12.34.567.89" for SSH connection
Trace: Connecting to 12.34.567.89 port 22
myhostname Failed Command: open "username@myhostname" 22
Trace: Looking up host "myhostname" for SSH connection
Trace: Connecting to [IPv6 address] port 22
  • 12.34.567.89 is not an IPv4 address. Apr 2, 2022 at 20:41
  • @PatrickMevzek thanks for your precious comment... and if the IPv4 were a fake?
    – perissf
    Apr 3, 2022 at 7:26
  • You are welcome. Please read RFC 5737. Or just improve your question substantially by giving the real name and IP involved instead of bad and useless obfuscation. Apr 3, 2022 at 19:42

1 Answer 1


Too long to comment and possibly completely wrong, but:

It looks like the problem is not related to your hostname but more the difference between accessing your system over IPv4 versus IPv6.

It also seems that you're using port forwarding or something similar to expose port 22. That is needed when your server uses an RFC 1918 private use IPv4 address and your router performs NAT.

With a correct IPv6 setup though your server has a globally unique and routable IPv6 address and you don't do NAT. And after granting access in your firewall, you should be able to access the server directly by its own IPv6 address, rather than by the IPv6 address of the router. That means that you should also register the server's IPv6 address, rather than your routers IPv6 address with the dynamic dns provider.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .