Score:0

Allow access to FileZilla SFTP server through FTP subdomain and no other domains

ug flag

I've installed FileZilla Pro Server on a VPS server, and have it working with SFTP.

At first, I just used the IP address to access the server, but I've since added an ftp.domain.com subdomain to my VPS. This is also working fine.

However, if instead of ftp.domain.com, I use any other domain or subdomain hosted on my server, that also works!

Is there any way to restrict SFTP access to only use ftp.domain.com? And to reject all other domains and subdomains?

Note: There is one IP address for the entire VPS server and adding additional IP addresses isn't an option in the immediate future.

so flag
Does this answer your question? [Do the SSH or FTP protocols tell the server to which domain I am trying to connect?](https://serverfault.com/questions/672270/do-the-ssh-or-ftp-protocols-tell-the-server-to-which-domain-i-am-trying-to-conne)
Lex Li avatar
vn flag
https://filezillapro.com/docs/server/filezilla-pro-enterprise-server/filezilla-pro-enterprise-server-how-to-configure-sftp/ Sounds like a messy question with a messy product site. Request edits to remove both ftp and iis tags.
anx avatar
fr flag
anx
Did you possibly only consider IPv4 addresses when you determined adding one is not an option? You might have something like 18446744073709552000 unused addresses ready to use, and not need the other kind.
Jonathan Wood avatar
ug flag
@anx: I don't follow you. It's a VPS server and the host is currently providing exactly one IP address.
Score:2
us flag

SSH / SFTP does not have concept of virtual hosts in the way http / https protocols have.

Therefore the answer is no. You need to have a separate IP address to limit access.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.