It’s finally working with that Git verion of the nsmb.conf file. I will summarize here the one I had previously that did not work:
streams=yes
soft=yes
signing_required=yes
dir_cache_off=no
protocol_vers_map=6
port445=no_netbios
notify_off=yes
mc_prefer_wired=yes
mc_on=no
dir_cache_max_cnt=0
and working for me is:
[default]
# Disable packet signing
signing_required=no
# Use NTFS streams if supported
streams=yes
# Turn off SMB notifications
notify_off=yes
# Disable NetBIOS (https://support.apple.com/en-us/102050)
port445=no_netbios
# Negotiate SMB version(s) (https://support.apple.com/en-us/102050)
# 6 == 0110 SMB 2/3 should be enabled
# 4 == 0100 SMB 3 should be enabled
protocol_vers_map=4
# Soft mount by default
soft=yes
# Disable directory caching
dir_cache_off=yes
# Limit caching
dir_cache_max_cnt=0
# Prefer wired connection, if available (https://support.apple.com/en-us/102010)
mc_prefer_wired=yes
# Disable SMB multichannel support (https://support.apple.com/en-us/102010)
mc_on=no
Major differences seem to be these three lines:
signing_required=no
dir_cache_off=yes
protocol_vers_map=4
Not sure which of them actually made the difference.