Error set: smbclient reported an error when accessing the Windows shared folder: protocol negotiation failed: NT_STATUS_CONNECTION_RESET

smbclient reported an error when accessing the Windows shared folder: protocol negotiation failed: NT_STATUS_CONNECTION_RESET

Error report phenomenon:

[root@bogon ~]#smbclient -L//192.168.2.1/
protocol negotiation failed: NT_STATUS_CONNECTION_RESET

Insert picture description here

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

Insert picture description here
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

Insert picture description here
You can already see the shared files

Guess you like

Origin blog.csdn.net/qq_35456705/article/details/114948840