Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (2024)

In this article, we’ll go through the detailed steps to deploy an Azure SFTP server. Although the typical path to accomplish this, would be to spin up a VM in Azure and then configure the SSH and SFTP services from scratch, some shortcuts are easier to manage, maintain, and more cost-efficient.

In this post, we will deploy an SSH FTP (Secure FTP) on Microsoft Azure. We will go through two paths: first using Azure Container Instance (ACI) powered by an Azure File Share, and second, integrating Azure Container storage with a third-party SFTP provider, Files.com.

1. How to Deploy a Secure FTP (SFTP) Service on Microsoft Azure

The SSH File Transfer Protocol (SFTP), also known as the Secure File Transfer Protocol (SFTP), was designed to extend the SSH protocol v2.0. SFTP includes the secure file transfer capabilities that SSH didn’t have. It provides file access, transfer, and management over the Secure Shell (SSH) protocol.

SFTP works on a client/server basis. It establishes a secure channel using port 22 over an unsecured network. To deploy an SFTP service, you can use Microsoft Azure as the SFTP server or storage and use any SFTP client to connect and transfer files.

Benefits of using Azure as an SFTP server

  • Authentication In Azure, you can use username/password or SSH keys to authenticate users.
  • Access For added security, you can limit the SFTP service by restricting access to containers per public IP.
  • Users Configure multiple users for the SFTP service. In addition, you can mount one or more file shares for each of these users.
  • Integrate your SFTP service to an existing Azure private virtual network A good option if you prefer keeping SFTP access local within the Azure environment. Use a private IP and have end-to-end VPN access between your local private network and Azure’s local private network.

What are the options to deploy an SFTP service on Azure?

Unfortunately, Azure does not offer a fully managed SFTP service (or SFTP as a Service), and although you could create a VM-based SFTP server from scratch, its maintenance and cost will increase quickly. So, there are two shortcuts:

  • Use an Azure Container Instance (ACI) with an Azure File Share as storage support
    This approach can be a cost-effective, simple, and fast-to-deploy SFTP solution. ACI is backed up by Azure File Share, a durable and persistent storage solution.
  • Integrate Azure storage with a third-party cloud file-sharing solution such as Files.com
    Files.com allows you to integrate your Azure server and mount Azure’s blob storage into Files.com's SFTP service.
  • Create an Azure VM and install SFTP server software on it. Cerberus FTP Server is an example of such a package and that will also provide a Web-based client that users can access remotely.

Cerberus FTP Server Start a 25-day FREE Trial

2. Deploying an FTP service using the Azure Container Instances (ACI)

ACI is a managed service that allows you to deploy and run containers directly from the Microsoft Azure Cloud. With ACI, you don't need to provide underlying infrastructure as you would with VMs. Plus, you are not required to use high-level services for container management. Instead, ACI gives you the basics to manage a group of containers and supports container orchestrators like Kubernetes.

a. Deploy SFTP on ACI and File Share using Microsoft-released custom templates

Microsoft Azure’s community released two custom Azure Resource Manager templates (ARM templates) to help you create an on-demand SFTP server with ACI. These templates are based on JSON. They get you the right resources you need to deploy an SFTP solution.

These ARM templates create a storage account and File Share that is then mounted into the ACI for persistent storage when the container is terminated. The ACI is available in the selected locations, and the container image used by these templates is hosted on a Docker Hub.

  1. With new Azure Files persistent storage. Use the following JASON template 01
  2. With an existing Azure Files persistent storage. Use the following .JASON template 02

Note: You could still customize the Azure Resource Manager templates (ARM templates) to suit your needs. But you’ll need to edit the template via CLI using JASON. Bear in mind that these templates are open-source and found under the GitHub project repository. Although Azure does provide support for ACI and Azure Files, these templates are outside the scope of Azure support.

b. Fill out the required information

Open Azure and sign in. The JASON templates will take you through the following forms.

If creating an SFTP server from new Azure File storage, you’ll need to fill out the following information.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (1)

  • Subscription Pick the Azure subscription to deploy the SFTP service.
  • Resource Group Use an existing or create a new resource group. Azure Resource Groups are the logical collection of VMs, storage accounts, Virtual Networks, containers, databases, etc.
  • Instance Details:
    • Region Choose the region that is closer to the SFTP clients.
    • Storage Account Type Choose between the available storage account types. The three presented in the template are standard General-purpose v1 blob storage account services. They are storage redundancy options: Standard_LRS, _ZRS, or _GRS. Locally Redundant Storage (LRS), Zone redundant storage (ZRD), and Geo-Redundant Storage (GRS).

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (2)

Note: Bear in mind that General-purpose v1 accounts do not have the latest features or the lowest per-gigabyte pricing compared to General-purpose v2 (GPv2).

  • Storage Account Prefix Set the prefix for the new storage account.
  • File Share Name Give the name of the Azure File Share a name. The Azure File share applies to the account storage type that you specified before.

Note: The latest update on this template was on 4 Sep 2020. Since that time, Microsoft Azure has updated their GPv1 to GPv2. As said before, the new account types have more features. For example, GPv2 account types allow you to deploy Azure File Shares on a standard HDD. In addition, GPv2 account types can store additional resources like blob containers, queues, and tables. Azure file shares can also be deployed into hot, cool, or transaction optimized (default) tiers.

  • SFTP User and Password Provide a new SFTP username and password.
  • “Location” and “Container Group DNS Label” Leave these two values as provided by the template.
  • Click on “Next for Review and Create” Microsoft will send you a notification warning you about the creation of resources from a custom template.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (3)

Once you click on create, your SFTP deployment process will begin.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (4)

Now, you have an SFTP service running on Azure.

a. Using and testing the SFTP service

To configure an SFTP client, you’ll need to get the container group’s (sftp-group) Fully Qualified Domain Name (FQDN). We use the ACI container group’s FQDN rather than a public IP because ACI’s container groups do not support static IPs.

  • To find the FQDN for your container instances group: “SFTP group,” go to your “Container Instances”

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (5)

  • Click on the sftp-group
  • In the next screen, find and copy the related FQDN

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (6)

Connect from the client

To connect remotely to the Azure SFTP server, you can use an SFTP client such as FileZilla. First, open Filezilla and enter the SFTP server's information.

When initially establishing a connection with your SFTP server, you’ll get the SSH public key. Since the SFTP client doesn’t know about this key, your client will send a message warning you of the “unknown host key.” Since you know this is your new SFTP server, click on “Ok”.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (7)

You’ll notice that the SFTP client gives you access to a folder named “upload”. When you transfer files via SFTP to this “upload” folder, the files will be placed into the Azure File Share. As a test, go ahead and upload a file into the “upload” folder.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (8)

Note: Azure’s ACI will continue to bill you for the container instance group: “SFTP-group,” regardless of whether you are transferring data or not. It is recommended to manually stop the SFTP-group once you have communicated all your files. Bear in mind that you can manually start the SFTP-group again and do the same process. If you do stop and start the SFTP-group, you’ll get the new FQDN every time.

The files will always remain accessible via the Azure File Share.

Check on the SFTP server

  • Now go back to Azure Portal > Storage Accounts. Open the storage created for the resource group (SFTP-Group).
  • Within Data Storage, go to File Shares, and open your SFTP File Share.
  • From here, you’ll be able to see your uploaded files.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (9)

3. Using a third-party cloud-based file sharing solution

You are probably looking at Microsoft Azure because of its robust Blob Storage solution. With Azure, you have the peace of mind that your files are reachable from anywhere and anytime and that they are secure. But unfortunately, as stated above, Azure does not offer any SFTP as a service or SFTP managed service. Hence, you have to either use the previous solution with some inconveniences or integrate a third-party service. Another option is to set up a VM and then install an on-premises software implementation of SFTP on it.

What is Files.com and why use it

Files.com is a cloud-based, intelligent, and secure file-sharing service. Aside from being robust cloud storage, Files.com is the file-sharing service that lets you collaborate, automate and protect all your file-sharing processes. This service allows you to share files via share links, inbound inboxes, and workflows.

  • One of the unique features of Files.com is its ability to integrate different services. Files.com supports FTP, SFTP, and WebDAV file transfer mechanisms and allows you to mount or sync many popular public cloud storage providers, including Azure.

Why files.com as a solution for SFTP?

Files.com integrates with Microsoft Azure Blob Storage. You can mount Azure’s blob storage directly into the Files.com SFTP service without the need for additional containers or VMs. But if needed, you can also mount an existing container into Files.com. Additionally, you can sync a Files.com folder or folders on a one-way or two-way basis with Azure’s Blob Storage.

The Azure integration requires Files.com Enterprise Connectivity Addon. This add-on is free with the Premier or Enterprise plan.

a. How to integrate Files.com with Azure and then mount a folder?

Login to your Files.com account. They offer a 7-day free trial, with unlimited access to assistance, usage, every feature, and as many users you need.

  • Go ahead and open your Files.com dashboard.
  • Go to Integrations.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (11)

  • Within Integrations, go to “Search for Integrations” and type “Azure,” and select it.
  • Click on “Add Microsoft Azure as a remote server”

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (12)

  • For the integration, you’ll need to enter Microsoft Azure’s remote server information.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (13)

  • The internal name for this connection
    This information is particular to Files.com. You can give it any name you want.
  • Account
    This information is particular to Azure. Go to Azure Portal > Storage Accounts. Select the account that you would like to integrate with Files.com. Copy the name of the Account and paste it on Files.com
  • Container
    Azure’s blob storage uses storage containers within the storage account. Therefore, you should be able to find the “container name” within the storage account.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (14)

Image source: Blob Storage Introduction

  • Access Key
    Within Storage Accounts > Select your Storage Account and Container as above. Next, go to Security + Networking > Access Keys. Click on “Show Keys” and copy your key. Go ahead and paste the key into Files.com.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (15)

If all information is correct, you should be able to see the remote Azure server successfully integrated into Files.com.

b. Now, let’s mount a folder

  • Create a new mount folder in Files.com.
  • Go to the Files.com dashboard and click on “New folder”. Give your new folder a name.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (16)

  • Go back to the “Files” menu > Select your newly created folder (SFTP-User-Content, for example) > Click on “Folder Settings” > Remote server mount.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (17)

  • Search for your newly added remote server, and click on “Save”

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (18)

  • Click on Save.
  • If you successfully mounted the folder, you should see the “Microsoft Azure” icon on the top right corner of Files.com.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (19)

c. Testing your folder mount

For testing purposes, I uploaded two pictures to my Azure storage container; The same container that was remotely connected with Files.com.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (20)

  • Go back to Files.com and check on the folder mounted on Azure. Again, the same two files on Azure should be visible on Files.com.

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (21)

Final Words

In this post, we deployed a Secure FTP (SFTP) on Microsoft Azure with the following two methods: First, use Azure's ACI and File Share services without the need to spin up any VM. Second, we used the ARM templates provided by Microsoft.

The second method we used was Azure's container blob storage and a third party Files.com to take care of SFTP. We also integrated the Azure server into Files.com and then mounted Azure as a folder on File.com.

Deploy SFTP Service on Azure FAQs

What is SFTP and why is it important in Microsoft Azure?

SFTP (Secure File Transfer Protocol) is a secure and reliable protocol for transferring files over the internet. It is important in Microsoft Azure because it allows for secure file transfers between on-premises systems and Azure virtual machines, ensuring the confidentiality and integrity of the transferred data.

What are the benefits of deploying SFTP in Microsoft Azure?

The benefits of deploying SFTP in Microsoft Azure include:

  • Scalability: Azure provides the ability to scale up or down as needed, to handle changing file transfer needs.
  • Security: Azure provides a secure platform for SFTP file transfers, with built-in security features and monitoring capabilities.
  • Cost-effectiveness: Azure provides a cost-effective solution for deploying SFTP, with flexible pricing options and the ability to pay for only what you use.
Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide (2024)

FAQs

Deploy a Secure FTP (SFTP) Service on Azure - Step-by-Step Guide? ›

The steps to deploy a secure SFTP service on Microsoft Azure include creating an Azure Virtual Machine, configuring an SFTP server on the VM, creating an Azure Storage account, and configuring Azure Network Security Groups to restrict access to the SFTP service.

How to deploy a secure ftp/sftp service on Microsoft Azure? ›

The steps to deploy a secure SFTP service on Microsoft Azure include creating an Azure Virtual Machine, configuring an SFTP server on the VM, creating an Azure Storage account, and configuring Azure Network Security Groups to restrict access to the SFTP service.

How do I setup a secure SFTP server? ›

Step-by-step instructions for setting up a Windows SFTP server
  1. Step 1: Install OpenSSH. Download the latest version of OpenSSH. ...
  2. Step 2: Activate SSHD and the SSH agent. ...
  3. Step 3: Open an SSH port. ...
  4. Step 4: Create SFTP connection. ...
  5. Step 5: Upload files to the Windows SFTP server.
Oct 12, 2023

How to configure SFTP in Azure? ›

  1. In the Azure portal, navigate to your storage account.
  2. Under Settings, select SFTP. Note. This option appears only if the hierarchical namespace feature of the account has been enabled. ...
  3. Select Enable SFTP. Note. If no local users appear in the SFTP configuration page, you'll need to add at least one of them.
May 1, 2024

How do I deploy a SFTP server? ›

Open the AWS Transfer Family console at https://console.aws.amazon.com/transfer/ and select Servers from the navigation pane, then choose Create server. In Choose protocols, select SFTP, and then choose Next. In Choose an identity provider, choose the identity provider that you want to use to manage user access.

How do I setup a secure FTP site? ›

To set up a secure FTP, you need to create a server, add users, and assign permissions. Additionally, the server should have firewalls and intrusion detection systems (IDS). You should also opt for SFTP instead of FTP, use strong encryption, and regularly audit the server.

Does Azure files support SFTP? ›

You can mount an Azure File Storage file share on your SFTP Gateway VM for Azure. Uploaded files will be saved to the file share, rather than the Linux volume.

How to configure FTP to SFTP? ›

How to connect your desktop FTP client to your SFTP server
  1. Open FileZilla and navigate to File > Site Manager.
  2. Click on New Site.
  3. Name your site if you'd like.
  4. In the Host field, enter your public IP address.
  5. Change the Protocol field to SFTP – SSH File Transfer Protocol.
  6. If you're using password authentication:
Jan 29, 2020

What is the difference between FTP and SFTP? ›

What are FTP and SFTP? FTP is the traditional file transfer protocol. It's a basic way of using the Internet to share files. SFTP (or Secure File Transfer Protocol) is an alternative to FTP that also allows you to transfer files, but adds a layer of security to the process.

What is the Secure File Transfer Protocol for SFTP server? ›

Secure File Transfer Protocol (SFTP) is a network protocol that enables secure and encrypted file transfers between a client and a server. It is designed to provide a secure alternative to the traditional File Transfer Protocol (FTP) by incorporating Secure Shell (SSH) for authentication and data encryption.

Does Azure have an FTP service? ›

Fully managed service for the large enterprise. We offer a fully managed hosting service (SaaS) for FTP, FTPS and SFTP right from your own Azure Cloud account. Support for syncing files to Azure Storage, Amazon S3 and Google Cloud.

How to create an ftp server in Azure? ›

Follow the following steps:
  1. Step 1 – Network Connectivity / Active Directory. ...
  2. Step 2 – Enable Identity-based authentication for Azure Files. ...
  3. Step 3 – Update DNS on vNet. ...
  4. Step 4 – Add VM to Active Directory. ...
  5. Step 5 – Assign Azure RBAC permissions on Azure File Share. ...
  6. Step 6 – Map network drive to Azure File Share.
Nov 19, 2023

How do I set up FTP user in Azure? ›

In the Azure portal, you must have at least one app before you can access the deployment credentials page. To configure your user-scope credentials: From the left menu of your app, select > Deployment center > FTPS credentials or Local Git/FTPS credentials.

How to setup a SFTP server? ›

How to Set Up an SFTP Client Server
  1. Navigate to Reports > Reports & Billing.
  2. Select Setup SFTP button in the upper right corner. ...
  3. Select the Client radio button.
  4. Enter your website in Host Address .
  5. Enter the Port number.
  6. Enter your dedicated SFTP Username when connecting into their dedicated folder (e.g. merchant-sftp).

How to setup SFTP connection between two servers? ›

How to Connect Using SFTP?
  1. Check your SSH access using one of these commands: ssh user@server_ipaddress ssh user@remotehost_domainname.
  2. Once that is done, leave the session if no errors occurred.
  3. Initiate an SFTP connection with the following commands: sftp user@server_ipaddress sftp user@remotehost_domainname.
Mar 20, 2024

How do I push files to SFTP server? ›

Run SFTP commands to upload or download files
  1. Remotely connect the instance on the terminal. sftp [The logon username]@[The public IP address of the instance]
  2. Upload or download a file or a folder. # Upload a file to the instance.
Mar 6, 2024

Does Azure App Service support SFTP? ›

Now, with SFTP support for Azure Blob Storage, you can enable SFTP support for Blob Storage accounts with a single click. Then you can set up local user identities for authentication to connect to your storage account with SFTP via port 22. This article describes SFTP support for Azure Blob Storage.

How to enable FTP authentication in Azure? ›

1 answer
  1. In your app's resource page in Azure portal, select Configuration > General settings from the left navigation.
  2. Enable - Basic Auth Publishing Credentials (toggle to On) and save the config.
  3. The app may restart, now check if FTP Credentials tab show-up under Deployment Center.
Jan 21, 2024

How do I secure a file transfer in Azure? ›

Require secure transfer for an existing storage account
  1. Select an existing storage account in the Azure portal.
  2. In the storage account menu pane, under Settings, select Configuration.
  3. Under Secure transfer required, select Enabled.
Jun 18, 2024

References

Top Articles
What is the ampacity of a 6 AWG wire?
How To Connect 6 Gauge Wire In Junction Box? - Cohesive Homes
Rosy Boa Snake — Turtle Bay
Time in Baltimore, Maryland, United States now
Urist Mcenforcer
Ets Lake Fork Fishing Report
Tv Guide Bay Area No Cable
Ati Capstone Orientation Video Quiz
Rondale Moore Or Gabe Davis
Jonathan Freeman : "Double homicide in Rowan County leads to arrest" - Bgrnd Search
Teamexpress Login
Kentucky Downs Entries Today
ds. J.C. van Trigt - Lukas 23:42-43 - Preekaantekeningen
City Of Spokane Code Enforcement
Stream UFC Videos on Watch ESPN - ESPN
Youtube Combe
Aita Autism
fltimes.com | Finger Lakes Times
Cvs Learnet Modules
Worcester On Craigslist
Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
Epro Warrant Search
Palm Coast Permits Online
Best Uf Sororities
Nine Perfect Strangers (Miniserie, 2021)
Curry Ford Accident Today
Timeforce Choctaw
Clare Briggs Guzman
Craigslist Houses For Rent In Milan Tennessee
Target Minute Clinic Hours
Arrest Gif
Garden Grove Classlink
Yale College Confidential 2027
Jailfunds Send Message
Housing Intranet Unt
Laveen Modern Dentistry And Orthodontics Laveen Village Az
Halsted Bus Tracker
60 Second Burger Run Unblocked
Lucky Larry's Latina's
Kvoa Tv Schedule
What Are Digital Kitchens & How Can They Work for Foodservice
Petsmart Northridge Photos
Jewish Federation Of Greater Rochester
Lyca Shop Near Me
D-Day: Learn about the D-Day Invasion
Flags Half Staff Today Wisconsin
FREE - Divitarot.com - Tarot Denis Lapierre - Free divinatory tarot - Your divinatory tarot - Your future according to the cards! - Official website of Denis Lapierre - LIVE TAROT - Online Free Tarot cards reading - TAROT - Your free online latin tarot re
Rescare Training Online
Oefenpakket & Hoorcolleges Diagnostiek | WorldSupporter
91 East Freeway Accident Today 2022
The Significance Of The Haitian Revolution Was That It Weegy
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6270

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.