SFTP through AWS LB

0

We need to host an SFTP server (SFTPGO) on EC2 and expose it publicly (Due to some custom requirements and cost reasons, we cannot use AWS SFTP).

The way I am thinking of doing this is:

  1. 2x EC2 instances running SFTPGo backend by some shared DB to store the user data, virtual folder configs, etc. This sftpgo will mostly act as sftp-over-s3.
  2. An AWS LB (ALB / NLB) to route the traffic to port 2022 (where sftpgo will be listening for sftp).

Is it possible to use ALB for SFTP traffic? what would be the listener type? Or should we be using NLB here?

asked 10 months ago556 views
2 Answers
2
Accepted Answer

ALB supports HTTP/HTTPS traffic only so it is not relevant here.

With NLB you can do simple TCP port 22 based load balancing (and if necessary map the port towards the servers from 22 to 2022 to avoid running the sftp process with root privileges).

For storage you can also consider EFS and mount the same storage to all your EC2 instances using NFS protocol.

AWS
EXPERT
answered 10 months ago
EXPERT
reviewed 10 months ago
EXPERT
reviewed 10 months ago
0

Hi! The AWS SFTP (AWS Transfer Family) service team would be keen to learn more about your custom requirements and cost concerns, as it helps us to refine our products and pricing based on customer feedback. Would you be willing to speak with the service team and share your feedback on the AWS SFTP service? Please do reach-out via your account team or AWS support channels.

AWS
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions