1, list the shared folders provided by an IP address smbclient-l 198.168.0.1-u Username%password
2, use smbclient like FTP client
smbclient//192.168.0.1/tmp-u usernameAfter the successful execution of the smbclient command, enter the smbclient environment, and a prompt appears: smb:\> There are many commands similar to FTP commands, such as CD, LCD, GET, megt, put, mput, etc. With these commands, we can access the shared resources of the remote host. 3, direct one-time use smbclient command smbclient-c "ls"//192.168.0.1/tmp-u Username%password and Smbclient//192.168.0.1/tmp-u username%p Asswordsmb:\>ls features the same example, create a shared folder Smbclient-c "MkDir share1"//192.168.0.1/tmp-u Username%password if the user shares// The 192.168.0.1/tmp way is read-only and will prompt nt_status_access_denied making remote directory \share1
4, in addition to using smbclient, you can mount remote shared folders via mount and Smbcount mount-t smbfs-o username=administrator,password=123456//192.168.0.1/ Tmp/mnt/tmpsmbmount//192.168.0.1/tmp/mnt/tmp-o Username=administrator
Smbclient How to use