Smbclient is a tool used to communicate with SMB servers. The following command will connect to an SMB share public using anonymous login.
public
Command Reference:
Target IP: 10.10.10.1 SMB Share: public
smbclient ////10.10.10.1//public -N