Skip to main content
This guide explains how to use ngrok with SFTP and why FTP or FTPS are not a good fit for TCP tunneling.

Compatibility with FTP and FTPS

FTP and FTPS (FTP over SSL) require multiple dynamic ports for data transfer between server and client, so ngrok is not a good solution for that traffic. Use SFTP instead, which uses a single port.

ngrok with SFTP

You can use ngrok for SFTP by starting a TCP endpoint on the port your SFTP server uses, usually port 22 (the same as SSH).
ngrok tcp 22
TCP endpoints are only available on a free plan after adding a valid payment method to your account.
From there, use the resulting TCP address in your preferred SFTP client to connect to your local server.

Alternatives to FTP for sharing files

If you’re just looking for a quick way to serve local files, ngrok has a built-in file server.