from sftp client not able to connect Azure blob storage

nadha 20 Reputation points


I have 2 environment one is prod and another one is no- prod .

Non- prod

in non-prod environment I have created blob storage and try to access from SFTP client and its all working as expected . In the non- prod we have given the storage account firewall setting as "enable from all the networks" and its works from sftp client without issue .


in prod environment we have selected the storage account firewall setting as "enabled from selected networks " while copy file manually its working but while connecting via sftp client its getting error as attached. its not connecting .

Please suggest what could be the reason.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,094 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 78,066 Reputation points MVP

    Hi @nadha ,

    are you connecting to the prod Azure Blob Storage by SFTP from an Azure VM or from your on-premises computer?

    Did you add your local computer IP to the Firewall section of the prod Storage Account?

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)


    Andreas Baumgarten

  2. Anand Prakash Yadav 845 Reputation points Microsoft Vendor

    @nadha, thank you for posting your query here!

    If you have tested and confirmed that your setup works in a non-production (non-prod) environment with the storage account firewall setting "enabled from all networks," but you are facing connectivity issues when testing from a public PC with an SFTP client in your production (prod) environment, there are several factors to consider in order to securely allow SFTP access from a public PC to your Azure Blob Storage in the production environment:

    Firewall Settings:

    As for prod environment you have selected the storage account firewall setting as "enabled from selected networks ", please confirm that the public IP address of the PC from which you are attempting to connect is correctly included in the list of allowed networks in the Azure Blob Storage firewall settings.

    SFTP Client Configuration:

    Please verify that your SFTP client is configured correctly to connect to Azure Blob Storage. Check that you are using the correct hostname, port (SFTP typically uses port 22), username and password.

    Ensure that your SFTP client uses secure SFTP protocols.

    Public PC Firewall and Proxy:

    Kindly check if the public PC has any local firewall or proxy settings that might be blocking the SFTP connection. You may temporarily disable local firewalls for testing purposes and check.

    For limitation and known issues with SFTP, please refer:

    If you've checked all these points and are still experiencing issues, it may be helpful to provide specific error messages or details about the issue you're encountering.

    Please let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments