AWS Transfer Family (AWS SFTP) Pricing, Setup With S3, WinSCP, Connectors, Lambda, EC2 Alternative and Error Fixes
AWS Transfer Family (often called AWS SFTP) gives you a fully managed SFTP, FTPS, FTP or AS2 server that stores files directly in Amazon S3 or Amazon EFS, so partners and customers can keep using WinSCP, FileZilla or their scripts while your files land in AWS with no server to patch. The pricing is simple but has one big catch: each protocol you enable costs $0.30 an hour, about $216 a month for a 30-day month, from the moment the server exists until you delete it, even if nobody connects. On top of that you pay $0.04 per GB uploaded or downloaded. A single SFTP server moving 1 GB a day costs about $217 a month. Optional extras: SFTP connectors to pull from or push to other companies' SFTP servers ($0.40 per GB plus $0.001 per call), PGP decryption in a managed workflow ($0.10 per GB), browser-based web apps ($0.50 an hour per unit) and AS2 for EDI ($0.01 per message for the first 100,000). Below: what Transfer Family is and when it is worth $216 a month, endpoint types and fixed IP addresses, every price with worked examples, a step-by-step setup with SSH keys, WinSCP and FileZilla on Windows, managed workflows and connectors, cheaper alternatives, and fixes for "Permission denied (publickey)" and the other errors you will meet.
The furniture store's suppliers sent stock and price files every night over SFTP to a small server in the store's back office, the same old desktop that also ran the label printer. When that desktop's disk filled up one weekend, Monday's prices were three days old and two suppliers were furious. The owner wanted the files to go straight into AWS, where the rest of the store's systems already lived, without asking twelve suppliers to change anything. Jake, who had come to replace the desktop's fan, asked the obvious question: "Can't they just email the files?" Ethan explained why supplier IT departments do not email price files, and opened the AWS Transfer Family console.
New to S3 permissions and networking? The cards below cover giving access to S3 buckets, EFS, public and private subnets, Route 53 and Lambda, the pieces a Transfer Family server uses.
What is AWS Transfer Family?
SFTP (SSH File Transfer Protocol) is how a huge number of businesses still exchange files: banks send statements, suppliers send price lists, logistics partners send shipment files, and payroll providers collect timesheets, usually with a scheduled script or a desktop client such as WinSCP or FileZilla. Running your own SFTP server means patching it, watching its disk, backing it up, managing its users and keeping it online.
AWS Transfer Family replaces that server. You get an endpoint on the internet (or inside your VPC) that speaks SFTP, FTPS (FTP over TLS), plain FTP (inside a VPC only) and AS2 (the protocol many retail and healthcare EDI partners use). Behind it, files are not stored on a disk you manage: every upload becomes an object in an Amazon S3 bucket or a file in an Amazon EFS file system, where your other AWS services can pick them up immediately.
What you get on top of a plain server:
- No servers to run: AWS runs, patches and scales the endpoint across several Availability Zones.
- Users your way: SSH keys stored in Transfer Family, passwords through your Active Directory, or any identity system through a small Lambda function.
- Per-user folders: each user can be locked into their own home directory in S3, with logical directories that hide your bucket structure.
- Managed workflows: automatic steps after each upload, such as copying, tagging, PGP decryption or calling your own Lambda function.
- SFTP connectors: Transfer Family can also act as a client, pulling files from or pushing files to your partners' SFTP servers.
- Web apps: a branded browser page where non-technical users can upload and download files without installing anything.
- Logging and audit: every login and file operation can go to CloudWatch Logs, and API calls to CloudTrail.
Jake: "So it's the same SFTP door the suppliers already knock on, but the room behind it is S3."
Ethan: "Exactly. They change the address in their script, and the files land where our systems can read them."
How AWS Transfer Family works
- You create a server in a Region, choosing the protocols (SFTP, FTPS, FTP, AS2), the endpoint type (public or VPC), the identity provider, and the storage (S3 or EFS).
- Transfer Family gives it a hostname such as
s-0a1b2c3d4e5f67890.server.transfer.us-east-1.amazonaws.com. You can add a friendly name likesftp.example.comwith a CNAME in Route 53 or any DNS provider. - You create users (or connect a directory), each with an IAM role that decides which bucket and folders they may use, and a home directory.
- A partner connects with their client on port 22 (SFTP) or 21 plus passive ports (FTPS), and authenticates.
- Transfer Family maps their actions to S3 or EFS calls: an upload becomes a PutObject, a directory listing a ListObjectsV2, a download a GetObject, all using the user's IAM role.
- A workflow runs (optional) when an upload completes, and an EventBridge event or S3 event notification can trigger your processing.
- Logs record the session, files and outcome in CloudWatch Logs.
Because S3 is an object store rather than a disk, a few file operations behave differently: renaming a large file is a copy and delete, appending to an existing file is not supported, and empty folders exist only as zero-byte markers. Most SFTP clients and scripts never notice.
Endpoint types and fixed IP addresses
- Public: reachable from the internet over SFTP only, with AWS-managed IP addresses that can change. Simplest, but you cannot restrict access with a security group, and partners who allow-list your IP addresses cannot use it.
- VPC, internet-facing: the endpoint lives in your VPC's public subnets with Elastic IP addresses you attach, so your address never changes, and a security group decides which partner IP addresses may connect. This is the usual choice for business partners, and it supports SFTP, FTPS and AS2.
- VPC, internal: reachable only from inside your VPC, or from your offices over a VPN or Direct Connect; the only type that supports plain FTP, which should not cross the internet unencrypted.
| Public | VPC, internet-facing | VPC, internal | |
|---|---|---|---|
| Reachable from | Anywhere on the internet | The internet, filtered by your security group | Your VPC, VPN or Direct Connect only |
| Protocols | SFTP | SFTP, FTPS, AS2 | SFTP, FTPS, FTP, AS2 |
| Fixed IP addresses | No | Yes, your Elastic IPs | Private IPs in your subnets |
| IP allow-listing of clients | No security group | Yes, security group | Yes, security group |
| Extra cost | None | Elastic IPs, about $3.65 a month each | None beyond your network |
| Best for | Quick tests and simple uploads | Business partners and allow-lists | Internal systems and legacy FTP |
Elastic IP addresses cost $0.005 an hour each (about $3.65 a month) on top of the endpoint, so a VPC endpoint across two Availability Zones with two fixed IPs adds about $7.30 a month. Our guide to public and private subnets explains where each piece goes.
AWS Transfer Family pricing
US East (N. Virginia) prices in October 2026:
| What you pay for | Price |
|---|---|
| Endpoint, per enabled protocol (SFTP, FTPS, FTP or AS2) | $0.30 per hour (about $216 for 720 hours) |
| Data uploaded or downloaded over SFTP, FTPS or FTP | $0.04 per GB |
| SFTP connectors: data sent or retrieved | $0.40 per GB |
| SFTP connectors: calls (transfer, listing, move, delete) | $0.001 per call |
| PGP decryption in a managed workflow | $0.10 per GB |
| Web apps | $0.50 per hour per unit (up to 250 sessions per 5 minutes); no per-GB fee |
| AS2 messages, sent or received | $0.01 each for the first 100,000 a month, $0.005 for the next 900,000; large messages billed per 50 MB chunk |
How the endpoint fee works: you pay for each protocol enabled on a server, every hour, for as long as the server exists. Enabling SFTP and FTPS on one server is two protocol fees, about $432 a month. Stopping a server blocks users from connecting, but the endpoint remains, and so does the hourly charge, so delete servers you no longer need rather than leaving them stopped.
What else appears on your bill: S3 or EFS storage and requests for the files themselves, Elastic IPs for VPC endpoints, CloudWatch Logs for session logs, Lambda and API Gateway if you use a custom identity provider, Secrets Manager if you store passwords there, and normal AWS data transfer out of the Region when partners download.
Worked examples: what Transfer Family really costs
Example 1: the furniture store's supplier server. One SFTP endpoint, 12 suppliers uploading a total of about 1 GB a day (30 GB a month), on a VPC endpoint with two Elastic IPs:
- Endpoint: 720 hours x $0.30 = $216.00
- Data uploaded: 30 GB x $0.04 = $1.20
- Elastic IPs: 2 x $3.65 = $7.30
- S3 storage for a year of files (about 365 GB in S3 Standard, falling to cheaper classes with a lifecycle rule): a few dollars
- Total: about $225 a month, almost all of it the endpoint fee.
Ethan: "Two hundred and twenty-five a month, and the old desktop is gone."
Jake: "The old desktop cost nothing."
Ethan: "Until it cost you two angry suppliers and a weekend of wrong prices."
Example 2: SFTP and FTPS for 1,000 users. Two protocols, 4.5 TB downloaded over SFTP and 9 TB over FTPS a month: endpoints 2 x $216 = $432; data (4,500 + 9,000) x $0.04 = $540. Total: about $972 a month, which works out under $1 per user.
Example 3: pulling files from partners with connectors. Ten SFTP connectors that each fetch a 25 MB file once a day from a partner's server (about 7.5 GB a month in total) and list the remote folder first: connector data 7.5 GB x $0.40 = $3.00; calls 10 connectors x 2 calls x 30 days = 600 calls x $0.001 = $0.60. About $3.60 a month, with no endpoint fee if you only use connectors and no server.
Example 4: decrypting PGP files. The same 30 GB a month as Example 1, decrypted by a workflow: 30 x $0.10 = $3.00 extra.
Example 5: a browser upload page. One web app unit running all month: 720 x $0.50 = $360 a month, with no per-GB fee, for customers who would never install an SFTP client.
Example 6: a test server someone forgot. An SFTP server created for a two-day test and left in place for a year: 8,760 hours x $0.30 = $2,628, for zero files. A budget alert, as in our billing alerts setup, would have caught it in the first month.
Set up an SFTP server with S3, step by step
- Create (or pick) the S3 bucket for the files, for example
store-supplier-files, with Block Public Access on. - Create an IAM role for your users that Transfer Family can assume (trusted entity:
transfer.amazonaws.com), with a policy allowings3:ListBucketon the bucket ands3:GetObject,s3:PutObjectands3:DeleteObjecton the objects (adds3:GetObjectVersionands3:DeleteObjectVersionif versioning is on, and KMS permissions if the bucket uses a customer managed key). - Open the AWS Transfer Family console and choose Create server.
- Protocols: choose SFTP only, unless partners need FTPS or AS2.
- Identity provider: choose Service managed to store users and SSH keys in Transfer Family.
- Endpoint: choose VPC hosted, Internet facing, your VPC, a public subnet in two Availability Zones, and an Elastic IP for each; or choose Publicly accessible for a quick test.
- Domain: choose Amazon S3.
- Logging: let the console create a logging role so sessions appear in CloudWatch Logs, and pick the latest security policy for modern ciphers.
- Create the server. It moves to Online in a few minutes.
- Add a user: on the server's page choose Add user, enter a username, select the role from step 2, set the home directory (for example
/store-supplier-files/supplier-acme) and tick Restricted so the user cannot browse outside it. - Add the user's SSH public key: the partner generates a key pair (below) and sends you only the public key, which you paste into the user.
- Open the security group on the VPC endpoint for TCP port 22 from each partner's IP addresses, and send them the hostname (or your CNAME) and their username.
To create a key pair for testing on Windows, macOS or Linux, use OpenSSH, which is built into Windows 11:
# Creates sftp_key (private, keep it) and sftp_key.pub (public, paste into the user)
ssh-keygen -t ed25519 -f sftp_key -C "supplier-acme"
# Test the connection from the command line
sftp -i sftp_key supplier-acme@s-0a1b2c3d4e5f67890.server.transfer.us-east-1.amazonaws.com
sftp> put prices-2026-10-21.csv
sftp> ls
The same server and user from the AWS CLI:
aws transfer create-server --protocols SFTP --identity-provider-type SERVICE_MANAGED \
--endpoint-type PUBLIC --domain S3
aws transfer create-user --server-id s-0a1b2c3d4e5f67890 --user-name supplier-acme \
--role arn:aws:iam::111122223333:role/transfer-supplier-access \
--home-directory-type LOGICAL \
--home-directory-mappings '[{"Entry":"/","Target":"/store-supplier-files/supplier-acme"}]' \
--ssh-public-key-body "ssh-ed25519 AAAAC3Nza... supplier-acme"
The LOGICAL home directory with a mapping to "/" means the user sees their folder as the root, and cannot even see the bucket's name, which keeps one supplier's files invisible to another. Our guide on giving access to an S3 bucket covers the IAM side in more depth; creating the user also needs iam:PassRole on the role, which our PassRole guide explains.
Connect with WinSCP, FileZilla and other clients
WinSCP on Windows (the most common client for SFTP to AWS):
- Open WinSCP, choose New Site, and set File protocol to SFTP, Host name to your server's hostname, Port to 22 and User name to the Transfer Family user.
- Choose Advanced, SSH, Authentication, and under Private key file select your key. WinSCP uses PuTTY's
.ppkformat and offers to convert an OpenSSH key automatically. - Save and Login. The first time, WinSCP asks you to confirm the server's host key; accept it after checking it matches the fingerprint on the server's page in the console.
- For scheduled uploads, WinSCP's scripting (
winscp.com /script=upload.txt) works unchanged against Transfer Family, so partners can keep their batch files.
FileZilla: open Site Manager, choose New site, protocol SFTP, host and port 22, logon type Key file, the user, and your private key (FileZilla can also convert keys). For FTPS, choose FTP with Require explicit FTP over TLS.
Other clients: Cyberduck on macOS and Windows, the OpenSSH sftp command on any system, lftp on Linux, and libraries such as Paramiko (Python) or SSH.NET (.NET) for applications. Anything that speaks standard SFTP works.
FTPS specifics: FTPS needs a TLS certificate from AWS Certificate Manager attached to the server, and clients use port 21 plus the passive data ports 8192 to 8200, which your security group and the partner's firewall must allow.
Users: SSH keys, passwords, Active Directory and custom logins
- Service managed: users and their SSH public keys are stored in Transfer Family. Simple and secure, for SFTP with keys only; no passwords.
- AWS Directory Service: users sign in with their Active Directory username and password (AWS Managed Microsoft AD, or your own AD through AD Connector), and you grant access to AD groups. Supports SFTP, FTPS and FTP.
- Custom identity provider: a Lambda function (or an API Gateway endpoint) that Transfer Family calls at each login, which can check passwords in Secrets Manager or a database, sign in through Okta or Microsoft Entra ID, enforce MFA or IP rules, and return the user's role and home directory. This is how you support passwords without Active Directory, or combine keys and passwords. Our Lambda explainer covers the basics.
Whichever you choose, give each partner their own user and home directory, so one partner's credentials can never reach another's files, and rotate keys when a partner's staff change.
Managed workflows, SFTP connectors, web apps and AS2
- Managed workflows run steps automatically after a file upload completes: copy (for example to an archive bucket), tag, delete, decrypt (PGP, with keys in Secrets Manager), or a custom step that invokes your Lambda function, plus exception steps when something fails. The store's workflow decrypted each supplier's PGP-encrypted price file, copied it to a processing folder, and called a Lambda function that loaded the prices into the store's database.
- SFTP connectors turn Transfer Family into a client: on a schedule (EventBridge Scheduler) or on demand, a connector logs in to a partner's SFTP server, lists folders, and retrieves or sends files between that server and your S3 bucket. You pay per GB and per call, with no server endpoint needed.
- Web apps give your users a browser page for uploading and downloading files to S3, signed in through IAM Identity Center, with your logo, for people who will never install WinSCP.
- AS2 supports the Applicability Statement 2 protocol used for EDI with retailers and healthcare partners, with signing, encryption and receipts (MDNs), billed per message.
Event-driven processing without workflows: an S3 event notification or an EventBridge rule on the bucket can trigger a Lambda function, Step Functions state machine or Batch job for every new file, which is often simpler when you only need to process uploads.
SFTP connectors in detail: pull from and push to partner servers
Many partners will not log in to your server; they expect you to collect files from theirs. That is what SFTP connectors are for, and they need no Transfer Family server or endpoint fee. Setting one up:
- Store the login in Secrets Manager: create a secret with the partner's username and either a password or a private key in OpenSSH format. Connectors do not accept PuTTY's
.ppkfiles; if a partner sent a .ppk key, open it in PuTTYgen and choose Conversions, Export OpenSSH key, then store that text in the secret's PrivateKey field. - Create an access role that lets the connector read the secret and read and write your S3 bucket (and use its KMS key, if any).
- Create the connector with the partner's URL (for example
sftp://sftp.partner.example.com), the role, the secret, and the partner server's trusted host key, so your connector refuses to talk to an impostor. - Give the partner your connector's IP addresses: connectors use fixed, service-managed egress IP addresses, shown on the connector's page, which the partner adds to their firewall allow-list.
- Run transfers on demand or on a schedule with EventBridge Scheduler, using StartFileTransfer to send or retrieve files and StartDirectoryListing to see what is waiting.
- Watch the results: each transfer emits an EventBridge event with its status, which you can route to a Lambda function to process the file or alert you on failure.
# Retrieve a file from the partner's server into S3
aws transfer start-file-transfer --connector-id c-0a1b2c3d4e5f67890 \
--retrieve-file-paths "/outbound/stock-2026-10-21.csv" \
--local-directory-path "/store-supplier-files/inbound/acme"
# List what is waiting in the partner's outbound folder (results are written to S3)
aws transfer start-directory-listing --connector-id c-0a1b2c3d4e5f67890 \
--remote-directory-path "/outbound" --output-directory-path "/store-supplier-files/listings"
Remember the price difference: connector data is $0.40 per GB, ten times the server's $0.04, so connectors suit small, regular files, while very large daily transfers from a partner may be cheaper on your own server where they push to you.
Encryption and security policies
- In transit: SFTP is encrypted by SSH and FTPS by TLS; plain FTP is not encrypted, which is why it is limited to internal VPC endpoints. A security policy on the server decides which key exchange methods, ciphers and MACs are allowed; choose the newest policy your partners' clients support, with FIPS and post-quantum hybrid key exchange variants available for regulated environments.
- At rest: files are encrypted in S3 with SSE-S3 by default or SSE-KMS with your own key, and EFS file systems can be encrypted with KMS. If you use a customer managed KMS key, the user's IAM role needs
kms:Decryptandkms:GenerateDataKeyon it, or uploads and downloads fail with access errors. - File-level encryption: partners often PGP-encrypt files before sending them. A managed workflow's decrypt step decrypts them with a private key you store in Secrets Manager, so the plain file only exists inside your bucket.
- Host keys: the server's SSH host key identifies it to clients. If you rebuild a server, import the old host key so partners' clients do not refuse to connect with a "host key changed" warning.
Ports and firewall rules
- SFTP: TCP port 22, inbound to your endpoint from the partners' IP addresses.
- FTPS and FTP: TCP port 21 for control, plus the passive data port range 8192 to 8200.
- SFTP connectors: outbound from AWS to the partner's SFTP port (usually 22), from your connector's fixed egress IPs.
- Clients behind corporate firewalls: outbound port 22 is sometimes blocked by default; the partner's network team may need to open it to your Elastic IPs.
On VPC endpoints, these rules live in the endpoint's security group, which is your main defense: allow only your partners' public IP ranges, not 0.0.0.0/0, unless the server genuinely serves the public.
Before you blame keys or IAM for a failed connection, prove the port is open. From a Windows PC, PowerShell's Test-NetConnection answers in seconds; on macOS or Linux, nc does the same:
# Windows PowerShell: TcpTestSucceeded : True means the port is reachable
Test-NetConnection sftp.example.com -Port 22
# macOS or Linux
nc -vz sftp.example.com 22
# Allow one partner's office range on the endpoint's security group
aws ec2 authorize-security-group-ingress --group-id sg-0a1b2c3d4e5f67890 \
--protocol tcp --port 22 --cidr 203.0.113.0/24
If the test fails, the problem is the network (security group, Elastic IP, a firewall on either side), not your user or key. If it succeeds but the login fails, move on to the error list further down.
AWS SFTP with Lambda: process uploads, custom logins and Lambda as a client
Lambda shows up in three different places around Transfer Family, and it helps to keep them apart:
- Processing files after upload: an S3 event notification on the bucket (or an EventBridge rule) invokes your function for every new object. This is the simplest way to turn "a supplier uploaded prices.csv" into "the database has new prices": the function reads the object with boto3, validates it and loads it. For bigger or longer jobs, have the function start a Step Functions workflow or a Batch job instead.
- Custom logins: as a custom identity provider, your function receives the username, the password (empty for key logins), the protocol, the server ID and the client's IP address, and returns the user's IAM role, home directory and, for key logins, the allowed public keys. Returning an empty response refuses the login.
- Lambda as an SFTP client: you can bundle a library such as Paramiko in a Lambda layer and open SFTP sessions from your function, but you then manage the library, the partner's host key, timeouts and the 15-minute limit yourself. It is usually simpler for your function to call an SFTP connector with
start_file_transferand let Transfer Family do the transfer.
A minimal custom identity provider that keeps each user's details in Secrets Manager (a secret named sftp/USERNAME holding the password, role, home folder and public key):
import hmac, json, boto3
secrets = boto3.client("secretsmanager")
to_json = json.JSONEncoder().encode
def lambda_handler(event, context):
user, password = event["username"], event.get("password", "")
try:
s = json.loads(secrets.get_secret_value(SecretId="sftp/" + user)["SecretString"])
except secrets.exceptions.ResourceNotFoundException:
return {} # unknown user: login refused
if password and not hmac.compare_digest(password, s.get("Password", "")):
return {} # wrong password: login refused
resp = {
"Role": s["Role"],
"HomeDirectoryType": "LOGICAL",
"HomeDirectoryDetails": to_json([{"Entry": "/", "Target": s["HomeDirectory"]}]),
}
if not password:
resp["PublicKeys"] = [s["PublicKey"]] # key login: Transfer Family checks the key
return resp
Give the function permission to read only the sftp/ secrets, and use the server's Test identity provider button before telling partners the password login is live. Every login calls the function, so its duration counts toward your Lambda bill, though at a few hundred logins a day that is a fraction of a cent.
Using AWS SFTP from Power Automate and other tools
Because Transfer Family speaks standard SFTP, business tools connect to it without special support. In Microsoft Power Automate, the SFTP with SSH connector can sign in to your Transfer Family server with a username and SSH private key, so a flow can copy files from SharePoint or Outlook attachments into your S3 bucket, or pick up files that your systems drop there. Integration platforms such as MuleSoft, Boomi and SSIS, backup software, and ERP systems' built-in "send by SFTP" features all work the same way: give them the hostname, port 22, the user and the key. When a tool only supports passwords, use a Directory Service or custom identity provider so that user can sign in with one.
Marketplace SFTP products: AWS Marketplace also lists third-party SFTP gateway products that run on your own EC2 instance and store files in S3. They sit between "build your own OpenSSH server" and Transfer Family on price and effort: cheaper per month for light use, but you still run and patch the instance.
Cheaper alternatives to AWS Transfer Family
$216 a month per protocol is good value for a busy, business-critical partner exchange, and expensive for a handful of files. Your options:
- Your own SFTP server on EC2: a small instance (for example a t4g.small at roughly $12 a month) running OpenSSH, with files on EBS or synced to S3, or with an S3 bucket mounted through Mountpoint for Amazon S3 (our Mountpoint guide shows how). Far cheaper, but you patch it, monitor it, manage users and plan for it failing.
- Presigned S3 URLs: your application gives a partner a time-limited upload or download link; no server at all, good for one-off or app-driven transfers.
- The AWS CLI or SDK: partners with AWS skills can upload straight to S3 with an IAM role, as in our upload a folder to S3 guide.
- SFTP connectors only: if your partners run the SFTP servers and you only need to fetch or send files, connectors cost cents and need no endpoint.
- Web apps or a file-sharing tool: for people rather than scripts.
- AWS DataSync: for bulk migrations of existing file servers into S3 or EFS, rather than ongoing partner transfers.
A useful rule: if more than a few partners depend on the server, or an outage costs you money, Transfer Family's managed availability is worth its fee. If it is one internal script moving a few files, use S3 directly.
SFTP on an EC2 instance, step by step (the cheap option)
If you decide that $216 a month is too much for your traffic, this is how you build the do-it-yourself version on Amazon Linux 2023, with each partner locked into their own folder:
- Launch a small instance such as a t4g.small in a public subnet, attach an Elastic IP so the address never changes, and give it an IAM role that may write to your S3 bucket.
- Open TCP 22 in the security group to your partners' IP ranges only, and keep your own admin access on Session Manager rather than SSH from the internet.
- Create a group and a user per partner with no shell:
sudo groupadd sftpusers, thensudo useradd -g sftpusers -s /sbin/nologin supplier-acme. - Build the jail folder: the chroot folder must be owned by root and not writable by anyone else, so create
/sftp/supplier-acmeowned by root, and inside it anuploadfolder owned by the user. - Add the partner's public key to
/home/supplier-acme/.ssh/authorized_keys, owned by the user, with permissions 700 on the folder and 600 on the file. - Tell OpenSSH to jail the group with the block below at the end of
/etc/ssh/sshd_config, then runsudo systemctl restart sshd. - Move files to S3 with a scheduled
aws s3 sync /sftp s3://store-supplier-files/(a systemd timer every few minutes is enough), and delete or archive local copies after the sync. - Patch it with
sudo dnf upgradeon a schedule, back up the instance's disk with snapshots, and alarm on the instance's status checks.
# End of /etc/ssh/sshd_config
Match Group sftpusers
ChrootDirectory /sftp/%u
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
What it costs: a t4g.small at $0.0168 an hour is about $12.26 a month, a 20 GB gp3 disk about $1.60, and the Elastic IP about $3.65, so roughly $17.50 a month against Transfer Family's $216 or more. What you give up: one instance in one Availability Zone, so an instance failure is an outage until you rebuild it; patching and user management are your job; and every new partner means a shell session rather than a console click. For a few partners and non-critical files, that trade is often fine. For the furniture store's twelve suppliers and nightly prices, Ethan judged it was not.
Jake: "Seventeen dollars sounds better than two hundred."
Ethan: "It does, until it's a Sunday night and the instance needs a reboot after a kernel update and I'm the only one who knows how."
Estimating your bill in the AWS Pricing Calculator
In the AWS Pricing Calculator, add AWS Transfer Family, choose your Region, and enter how many protocols you will run, for how many hours a month, and how many GB you expect to upload and download; add connectors, PGP decryption, web app units or AS2 messages if you use them. Then add the services Transfer Family does not include: S3 storage and requests, data transfer out for partner downloads, Elastic IPs on VPC endpoints, and Lambda or Secrets Manager for custom logins. For a quick estimate without the calculator, use this formula for one protocol:
Monthly cost = $216 + (GB moved x $0.04) + Elastic IPs + S3 storage.
| GB uploaded and downloaded per month | Endpoint | Data | Transfer Family total |
|---|---|---|---|
| 10 GB | $216 | $0.40 | $216.40 |
| 100 GB | $216 | $4 | $220 |
| 1,000 GB (1 TB) | $216 | $40 | $256 |
| 10,000 GB (10 TB) | $216 | $400 | $616 |
The table makes the shape of the bill clear: for most small and mid-sized businesses the fixed endpoint fee is the bill, and the per-GB charge only matters once you move terabytes a month.
Limits and quotas worth knowing
- File size: up to 5 TB per file, the S3 object limit that Transfer Family follows.
- Idle timeout: a connection with no activity for 1,800 seconds (30 minutes) may be disconnected, so long-running scripts should transfer or send keepalives rather than sit idle.
- Concurrent sessions: up to 10,000 per server, which is not adjustable.
- Users: up to 10,000 service-managed users per server by default, each with up to 50 SSH keys; both can be raised.
- Servers: 50 per account per Region by default, of which only 10 can be VPC endpoint servers (that VPC limit is fixed).
- Connectors and workflows: 100 SFTP connectors and 10 workflows per account per Region by default, both adjustable; a connector accepts up to 3 directory listings a second.
- Active Directory logins: at most 2 authentications per user per second per directory, which matters for scripts that open many sessions at once.
Logs, audits and alerts: who uploaded what
Turn on JSON structured logging when you create the server: each session's logins, file operations and disconnects go to a CloudWatch log group under /aws/transfer/, where CloudWatch Logs Insights can search them by user or file. Add CloudWatch alarms on the server's metrics in the AWS/Transfer namespace, such as FilesIn, so you hear about a supplier who stopped sending files before the prices go stale. If you turn on S3 server access logs, the requester field shows the role, the username, the session ID and the server ID for every request (assumed-role/RoleName/username.sessionid@server-id), which gives auditors a per-user trail inside S3 itself. The store's alarm fired on the second Monday: one supplier's script had failed silently, and Ethan called them before anyone noticed.
Common AWS Transfer Family errors and fixes
- "Permission denied (publickey)": the private key does not match the public key on the user, the username is wrong, or the client offers a different key first. Check the key on the user, connect with
sftp -v -i key user@hostto see which key is offered, and convert keys correctly for WinSCP (.ppk). - Connection timed out: for VPC endpoints, the security group does not allow TCP 22 from the client's IP, or the endpoint has no Elastic IP; for clients behind a corporate firewall, outbound port 22 is blocked.
- Login works but listing fails with "Permission denied" or "Access denied": the user's IAM role lacks
s3:ListBucketon the bucket, or the home directory points at a path the role does not cover, or the bucket uses a KMS key the role cannot use. - Upload fails with "Permission denied": the role lacks
s3:PutObjecton that prefix, or a bucket policy denies it, or a session policy narrows it. - "no matching host key type found" or "no matching cipher": the client is older than the server's security policy allows. Update the client, or choose a security policy that still supports the algorithms your partner needs (preferably asking them to upgrade).
- "Connection reset" or immediate disconnect with a custom identity provider: the Lambda function failed, timed out, or returned a malformed response. Check its CloudWatch logs and test it with the console's Test identity provider button.
- Files appear in S3 with a zero-byte folder object, or a rename fails on a large file: expected S3 behavior; renames are copy and delete, and some clients' "resume" features do not work with object storage. Turn off resume or temporary file names in the client.
- FTPS data connection fails after login: the passive ports 8192 to 8200 are blocked by the security group or the client's firewall, or a firewall is inspecting and breaking the TLS session.
- Charges continue after you stopped the server: stopped servers still exist and still bill per protocol; delete the server to end the charge.
Best practices
- One user per partner, with a restricted logical home directory and a role scoped to that folder.
- Prefer SSH keys (ed25519) over passwords, and rotate them.
- Use a VPC endpoint with Elastic IPs and a security group allow-list for business partners.
- Turn on logging to CloudWatch and alarms on failed logins.
- Enable only the protocols you need; each one is another $216 a month and another attack surface.
- Add S3 lifecycle rules to archive or delete old files, and versioning if partners may overwrite files by mistake.
- Delete test servers the day the test ends, and tag servers with an owner.
- Use a custom hostname (CNAME) so you can move or rebuild the server without changing every partner's script.
Frequently asked questions
What is AWS Transfer Family?
A managed AWS service that runs SFTP, FTPS, FTP and AS2 endpoints, storing files directly in Amazon S3 or Amazon EFS, so partners can keep using standard file transfer clients while you have no server to manage.
How much does AWS SFTP cost?
$0.30 an hour for each enabled protocol, about $216 for a 30-day month even with no traffic, plus $0.04 per GB uploaded or downloaded. Storage in S3 or EFS, Elastic IPs and logs are billed separately.
Is there a free tier for AWS Transfer Family?
There is no ongoing free allowance for the endpoint. Accounts on the newer credit-based AWS Free Tier can spend credits on it, but a server costs about $7 a day from the moment you create it, so delete test servers quickly.
Does stopping a Transfer Family server stop billing?
No. Stopping a server blocks connections, but the endpoint still exists and still bills $0.30 an hour per protocol. Delete the server to stop the charge.
Can AWS Transfer Family have a static IP address?
Yes. Use a VPC endpoint that is internet-facing and attach Elastic IP addresses, which never change. The public endpoint type uses AWS-managed IP addresses that can change.
How do I connect to AWS SFTP with WinSCP?
Create a new SFTP site with the server's hostname, port 22 and your username, add your private key under Advanced, SSH, Authentication (WinSCP converts OpenSSH keys to .ppk), save and log in, accepting the host key after checking its fingerprint.
Does AWS Transfer Family support passwords?
Yes, through AWS Directory Service (Active Directory usernames and passwords) or a custom identity provider built with Lambda or API Gateway. Service-managed users use SSH keys only.
Can Transfer Family store files in EFS instead of S3?
Yes. Choose Amazon EFS as the domain when you create the server, and users then work with a POSIX file system, useful when applications need real file system behavior such as appends and renames.
What is an SFTP connector?
A Transfer Family feature that acts as an SFTP client, logging in to a partner's SFTP server to list, retrieve or send files between it and your S3 bucket. It costs $0.40 per GB and $0.001 per call, with no endpoint fee.
What is the difference between SFTP and FTPS?
SFTP runs over SSH on port 22 and authenticates with keys or passwords. FTPS is FTP with TLS encryption, using port 21 plus a range of data ports and a TLS certificate. Both are encrypted; SFTP is simpler through firewalls.
Can I use plain FTP with AWS Transfer Family?
Only on a VPC internal endpoint, reachable from your VPC or over a VPN or Direct Connect, because plain FTP sends credentials unencrypted and should not cross the internet.
How do I use my own domain name for AWS SFTP?
Create a CNAME record, such as sftp.example.com, pointing to the server's hostname in Route 53 or your DNS provider, and give partners the friendly name. For FTPS, the TLS certificate must match that name.
What are Transfer Family managed workflows?
Automatic steps that run after a file upload completes: copy, tag, delete, PGP decrypt, or a custom Lambda step, with exception handling when a step fails. PGP decryption costs $0.10 per GB.
What are Transfer Family web apps?
A browser-based file transfer page for your users, signed in through IAM Identity Center, that uploads and downloads files in S3 without any client software. It costs $0.50 an hour per unit with no per-GB fee.
Is AWS Transfer Family secure?
Yes, when configured well: encrypted protocols, security policies with modern ciphers, per-user IAM roles and home directories, security group allow-lists on VPC endpoints, encryption at rest in S3 or EFS, and session logs in CloudWatch.
What is the cheapest way to run SFTP on AWS?
For light use, an OpenSSH server on a small EC2 instance, at roughly $12 a month, or presigned S3 links with no server at all. Transfer Family is worth its $216-a-month fee when many partners or business-critical transfers depend on it.
Why do I get Permission denied (publickey) on AWS SFTP?
The private key does not match the public key stored on the user, the username is wrong, or the client offers a different key. Run sftp -v to see which key is used, and check the key on the user in the console.
What is the maximum file size for AWS SFTP?
Up to 5 TB per file when the server stores files in S3, the same as the S3 object limit. Very large files work best with clients that do not use temporary file names or resume, because a rename in S3 is a copy and delete.
Can I run my own SFTP server on EC2 instead?
Yes. OpenSSH on a small instance such as a t4g.small, with a chroot folder per partner and a scheduled sync to S3, costs about $17.50 a month with an Elastic IP. You take on patching, backups, user management and the risk of a single instance failing.
How do I estimate AWS SFTP costs in the pricing calculator?
Add AWS Transfer Family, choose the Region, and enter the protocols, hours and GB moved each month, then add S3, data transfer out, Elastic IPs and Lambda separately. For one protocol, $216 plus $0.04 per GB is a good first estimate.
Can Lambda connect to an SFTP server?
Yes, with a library such as Paramiko in a Lambda layer, but it is usually simpler for the function to call a Transfer Family SFTP connector, which handles the session, host key checks and retries, and writes the files to S3.
Does AWS Transfer Family support AS2?
Yes. AS2 endpoints exchange EDI messages with signing, encryption and receipts, billed at $0.30 an hour per endpoint plus $0.01 per message for the first 100,000 a month.
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Solutions Architect – Associate (SAA-C03) • CloudOps Engineer – Associate (SOA-C03) • Cloud Practitioner.
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. Business partners upload files over SFTP from scripts, and the files must land in S3 with no servers to manage. Which service fits?
AWS Transfer Family with an SFTP endpoint and Amazon S3 as the storage domain.
2. Partners allow-list the IP addresses they connect to, so the SFTP endpoint needs addresses that never change and a client IP filter. Which endpoint type fits?
A VPC hosted, internet-facing endpoint with Elastic IP addresses and a security group.
3. A legacy application must use plain FTP. Where can Transfer Family offer it?
Only on a VPC internal endpoint, reachable from the VPC or over VPN or Direct Connect.
4. Users must sign in to SFTP with passwords stored in an existing identity system without Active Directory. What should you use?
A custom identity provider backed by a Lambda function (or API Gateway).
5. Files must be pulled every night from a partner-owned SFTP server into S3, with no SFTP server of your own. Which feature does this?
Transfer Family SFTP connectors, run on a schedule with EventBridge Scheduler.
6. PGP-encrypted uploads must be decrypted automatically as soon as they arrive. Which feature fits?
A Transfer Family managed workflow with a decrypt step using a key in Secrets Manager.
7. An unused Transfer Family server was stopped, but charges continue. Why, and what is the fix?
Endpoints bill per enabled protocol for as long as the server exists, even stopped; delete the server.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
The suppliers switched over across two weeks, each changing one hostname in a script and sending their public key. Ten of the twelve connected on the first try; one had an SFTP client from 2014 that could not negotiate the server's ciphers until their IT team updated it, and one had typed its key with a line break in the middle. The new price files landed in S3, a workflow decrypted and loaded them, and the back-office desktop was finally retired to label printing only. The first full month's bill was $226.40. Jake asked whether that was the most expensive way to receive a spreadsheet. "It's the cheapest way to receive twelve companies' spreadsheets every night without anyone noticing," Ethan said.
📌 If you keep one line from this page
AWS Transfer Family gives you a managed SFTP, FTPS, FTP or AS2 server that stores files in S3 or EFS, for $0.30 an hour per protocol (about $216 a month, even idle and even when stopped) plus $0.04 per GB; use a VPC endpoint with Elastic IPs for partners, one restricted user per partner, and delete servers you no longer need.
SSH keys over passwords · one protocol unless needed · budget alert on day one.
Revision note. Written October 21, 2026. Prices are US East (N. Virginia) list prices on that date. We will update this page when Transfer Family prices or features change.