错误集:smbclient访问Windows共享文件夹报错误:protocol negotiation failed: NT_STATUS_CONNECTION_RESET

smbclient访问Windows共享文件夹报错误:protocol negotiation failed: NT_STATUS_CONNECTION_RESET

报错现象:

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

在这里插入图片描述

解决办法:

打开/etc/samba/smb.conf文件,在global标签下增加如下两个参数项:

vim /etc/samba/smb.conf
[global]
...
...
client min protocol = CORE
client max protocol = SMB3

在这里插入图片描述
修改配置文件后再次验证

[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

在这里插入图片描述
已经可以看到共享的文件

猜你喜欢

转载自blog.csdn.net/qq_35456705/article/details/114948840
今日推荐