Azure Storage Account SFTP is enabled but I am not able to connect to it. It is giving timeout error.

Rajesh Govindarajan 5 Reputation points
2023-04-29T04:54:19.8966667+00:00

I created a storage account, enabled SFTP, and created a local user. But I am not able to connect to it from a command prompt. I am getting the following error.

Connection timed out. Connection closed.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,312 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 40,886 Reputation points Microsoft Employee
    2023-04-29T07:35:27.1333333+00:00

    @Rajesh Govindarajan Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    It could be intermittently issue, please try again, If the issue occurs, please share the screenshot

    There's a 2-minute time out for idle or inactive connections. OpenSSH will appear to stop responding and then disconnect. Some clients reconnect automatically.

    Limitations and known issues with SSH File Transfer Protocol (SFTP) support for Azure Blob Storage

    This article provided the steps to Connect to Azure Blob Storage by using the SSH File Transfer Protocol (SFTP)

    Verify that SFTP is enabled on your Azure Storage Account. You can do this by checking the settings of the storage account in the Azure portal.

    Ensure that you are using the correct SFTP credentials, including the username and password. You can also try generating a new set of credentials and see if that resolves the issue.

    Check that your firewall rules are properly configured to allow incoming and outgoing traffic on the SFTP port (typically port 22). You may need to add an exception to your firewall to allow traffic from your IP address to the storage account.

    Check that your network connection is stable and that you are not experiencing any disruptions or outages. You can also try connecting from a different network or using a VPN to see if the issue persists.

    Try connecting to your Azure Storage Account using a different SFTP client or tool. This can help isolate whether the issue is with the SFTP client you are using or with the storage account itself.

    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