Can't Log In to SFTP Using the Domain Name as Host
When I try to log in via my SFTP client (FileZilla) I usually use either the server hostname or the main domain for the host.
The hostname works, but the main domain doesn't, why?
Could it be that I use the Cloudflare Origin SSL certificate on the domain, which is self-signed?
-
Hey there! Yes, I would almost certainly bet this is related to the previous SSL issues you experienced. 1 -
If you're using Cloudflare, the domain's DNS A records are proxied through Cloudflare and therefore resolve to their IPs, rather than your server's IP. This is the reason why you can't log in through SFTP by using the domain name as a host.
To log in via via SFTP using some host, whether it be a domain, server, or some custom-created DNS A record just for this purpose, you need to disable its proxy on Cloudflare. In my case, I've disabled proxy for my server's hostname.
1
Please sign in to leave a comment.
Comments
2 comments