When I connect to my SMB Linux server by running:
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)?