The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

“ssh_exchange_identification: read: Connection reset by peer”


We are attempting to automate the creation of qtrees/shares in an effort to migrate ~2500 shares from other storage to Netapp.

The script that I’m running to do the automated share creation uses ssh commands to our primary CDOT cluster. My script creates the first 5 qtree/share correctly

but then the ssh connection drops with a “ssh_exchange_identification: read: Connection reset by peer” error (see below). What I’m trying to determine is why the
ssh connection to the filer fails. Is it too many ssh connections, or something like that?


Note: all the line with starting with + successfully completed and 5 -6 shares were successfully processed prior to the ssh reset

+ read -u 5 name

+ print 531001


+ check_input_vars

+ print 'valid share name 531001'

valid share name 531001

+ sync

+ sync

+ sync

+ return 0

+ [ 0 -eq 0 ]

+ create_qtree

+ print 'Creating qtree 531001'

Creating qtree 531001

+ sync

+ sync

+ sync

+ ssh -l naadmin 'qtree create -vserver WCSFS00 -volume med1 -qtree 531001 -security-style ntfs -oplock-mode enable'


+ sleep 5

+ return 0

+ [ 0 -eq 0 ]

+ create_share

+ print 'Creating share 531001'

Creating share 531001

+ sync

+ sync

+ sync

+ ssh -l naadmin 'share create -vserver WCSFS00 -share-name 531001 -path /med1/531001 -share-properties showsnapshot,access-based-enumeration,oplocks,browsable,changenotify'

ssh_exchange_identification: read: Connection reset by peer

+ sleep 5





I believe this has nothing to do with APIS in the first place. Can you please remove the tag ?




NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner