smbclient reported an error when accessing the Windows shared folder: protocol negotiation failed: NT_STATUS_CONNECTION_RESET
Article Directory
Error report phenomenon:
[root@bogon ~]#smbclient -L//192.168.2.1/
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
Solution:
Open the /etc/samba/smb.conf file and add the following two parameter items under the global label:
vim /etc/samba/smb.conf
[global]
...
...
client min protocol = CORE
client max protocol = SMB3
Verify again after modifying the configuration file
[root@bogon ~]#smbclient -L//192.168.2.1/
Enter SAMBA\root's password:
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk 远程管理
C$ Disk 默认共享
D$ Disk 默认共享
E$ Disk 默认共享
F$ Disk 默认共享
G$ Disk 默认共享
gx Disk
IPC$ IPC 远程 IPC
Users Disk
Connection to 192.168.2.1 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
You can already see the shared files