When I connect to my SMB Linux server by running:
smb://ubuntu
it shows me 2 shared folders and that's normal. I made the first folder working without a password and that's working fine. The second folder is secured and macOS doesn't ask for a password when I choose to connect to that folder and it shows an error message instead:
Check the server name or IP address, and then try again. If you continue to have problems, contact your system administrator.
How do I establish a connection successfully by getting a prompt to provide credentials (as required)?
Best Answer
I would use WireShark to capture the SMB2 packets and see what's happening.
brew cask install wireshark
This is much better than just trying another server or another client or trying to look at the Mac console in my experience. If this is overkill, you could open console.app from /Applications/Utilities and see if there are relevant messages / errors at the time when the error is posted to your screen.