Question:


I have both FTP and SFTP services running on my server, and both are configured to use the same IP address and Port, port 22. Is this valid?


Answer:


Each service, FTP, SFTP, HTTP must have a unique combination of IP Address and Port number. If your machine is configured as 192.168.2.100, you can set up FTP to listen on 192.168.2.100:21 and SFTP to run on 192.168.2.100:22.


Trying to configure multiple services to use the same IP and Port, such as FTP AND SFTP both running on 192.168.2.100:22 will result in one of the services failing to start because the IP and Port are in use by the other service.