SFTP Local User Cannot Login

Arun Etty 25 Reputation points
2024-03-13T06:04:53.87+00:00

I have created a Storage account and configured SFTP service but i am not able to connect to the SFTP as getting the below given error.

"Remote side sent disconnect message type 11(byapplication)

Authentication log (see session log for details):

Using username "storageaccountname.sftplocalusername".

Authentication failed."

The provided username and password are correct.

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anand Prakash Yadav 7,855 Reputation points Microsoft External Staff
    2024-03-14T10:39:59.9433333+00:00

    Hi Arun Etty, I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept" the answer. Accepted answers show up at the top, resulting in improved discoverability for others.

    Issue: Customer unable to connect to the SFTP service on Azure Storage. They were encountering an authentication error message: “Remote side sent disconnect message type 11(byapplication). Authentication failed.”

    Root Cause: The root cause of the issue was the incorrect format of the username used for authentication. Customer was using “storageaccountname.sftplocalusername” as the username.

    Solution: The issue was resolved by using the correct format for the username, which is “storageaccountname.localsftpusername”. After correcting the username, the user was able to successfully authenticate and connect to the SFTP service.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Deepanshukatara-6769 16,565 Reputation points Moderator
    2024-03-13T06:12:40.87+00:00

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

    Please check below points

    1)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.

    2)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.

    1. 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 check this link --> https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-known-issues


  2. Amrinder Singh 5,870 Reputation points Microsoft Employee Volunteer Moderator
    2024-03-13T13:38:14.36+00:00

    Hi @Arun Etty - Thanks for reaching out.

    From the above comments, I noticed that you have already fixed this issue. We would like to share the below 2 links that talks about in general configuration to review and also a blog on how to troubleshoot connectivity issues to Azure Storage over SFTP.

    https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support-how-to?tabs=azure-portal

    https://techcommunity.microsoft.com/t5/azure-paas-blog/troubleshooting-connectivity-to-azure-storage-over-sftp-via/ba-p/3990625

    Hope that helps!

    0 comments No comments

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.