Azure File NFS mount fails with connection reset by peer

Rohit Athikari 116 Reputation points

I have created NFS azure file share . Followed the steps mentioned in

Have configured Site to Site VPN. Created storage account with VNET and private end points

Now when i try to mount the share on on-prem linux client, i am getting connection reset by peer.

[kompuser@rohit30a-1 ~]$ sudo mount -vvv -t nfs /mnt/nfsazfiles/nfs1 -o vers=4,minorversion=1,sec=sys
mount.nfs: timeout set for Wed Sep 23 15:53:13 2020
mount.nfs: trying text-based options 'vers=4,minorversion=1,sec=sys,addr=,clientaddr='
mount.nfs: mount(2): Connection reset by peer
mount.nfs: Connection reset by peer

[kompuser@rohit30a-1 ~]$ nslookup

Non-authoritative answer: canonical name = canonical name =

[kompuser@rohit30a-1 ~]$ nmap -Pn -p2049

Starting Nmap 6.40 ( ) at 2020-09-23 15:52 UTC
Nmap scan report for
Host is up (0.067s latency).
2049/tcp open nfs

Nmap done: 1 IP address (1 host up) scanned in 0.40 seconds

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,111 questions
{count} votes

Accepted answer
  1. Rohit Athikari 116 Reputation points

    I am able to mount and access the share now. I was using the hostname and it was pointing to public IP. Once i used the private endpoint which as the IP from my VNET, its working fine now

0 additional answers

Sort by: Most helpful