Authentication issues when opening an SFTP connection to a blob storage from a cloud environment

Joël Goossens 0 Reputation points
2025-04-14T10:02:50.45+00:00

Hi there!

In a previous ticket (https://learn.microsoft.com/en-us/answers/questions/2245397/customer-is-unable-to-make-an-sftp-connection-to-a) I had contact with the connectivity team and they mentioned to me that it would be best to open a separate ticket for this where the storage team is attached instead, as they suspected that you would be able to find some relevant information in the back-end logs of the storage. Hopefully that was done correctly via the Azure Blob Storage child tag! They also mentioned during the call that it was possible to internally share details, so feel free to also check with them in case the prior description from the other ticket is insufficient.

The situation was already described in the first ticket, but in short: one of our customers has recently moved from a local to a cloud environment and they are now unable to make a valid SFTP connection. In the logs it mentions that the authentication failed when trying to connect from a cloud environment, but the authentication can be done successfully from a local environment.

As a new addition I will also include the anonymized session log from WinSCP that was generated during the call with the support team to hopefully add some information that will help you find the issue: WinscpSessionLog.txt.

Kind regards,

Joël

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

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 4,550 Reputation points
    2025-04-14T11:57:35.6633333+00:00

    Hi Joël,

    Thank you for your detailed message and for providing the session log along with the background.

    I’ve reviewed the situation, and based on the information provided, including the session log from WinSCP, it seems that the issue is likely related to how SFTP over Azure Blob Storage handles authentication when accessed from a cloud-hosted source compared to a local environment.

    I’m offer to check:

    Public Network Access & Firewall Rules Ensure that public network access is enabled for your storage account, or that the client cloud environment’s outbound IP address is included in the firewall exception list of the storage account.

    SFTP Local User Configuration Check that the SFTP authentication is properly configured using local users under the SFTP settings in the Azure portal, and that the credentials used match one of those users. Note that SFTP in Azure Blob Storage currently supports only local user authentication (not Azure AD or SSH key authentication via other mechanisms).

    SFTP Protocol Requirements Some cloud-hosted environments may block or restrict SFTP/SSH outbound traffic depending on their internal network security configurations. You may need to verify if port 22 is allowed for outbound traffic in the cloud provider’s firewall or NSG settings (if using Azure VMs).

    Username Format in SFTP Session When using SFTP for Azure Blob Storage, make sure the username follows this format:

    <storage-account-name>.<local-user-name>

    Mistakes in this format are a common cause of authentication failures.

    Check for Case Sensitivity Usernames and passwords in the SFTP config are case-sensitive. Please ensure the credentials are being used exactly as defined.

    As well

    Revalidate the username format and credentials.

    Confirm firewall and network rules in both the storage account and the source environment.

    Attempt connection using Azure CLI or Azure Storage Explorer (if possible) to rule out client-related behavior.

    If its possible pls share the complete error output if the failure persists, especially from tools other than WinSCP (e.g., OpenSSH client, FileZilla).

    Enable SFTP support for Azure Blob Storage

    Network access control for Azure Storage

    Troubleshooting SFTP connectivity issues

    Best regards,

    Alex

    P.s. If my answer help to you, please Accept my answer

     


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.