简体   繁体   中英

NT_STATUS_IO_TIMEOUT when trying to connect with samba client

I am trying to connect to a windows machine in my local network from ubuntu with samba client. To send a message I type :

smbclient -M 192.168.1.10

But I get

Connection to 192.168.1.10 failed. Error NT_STATUS_IO_TIMEOUT

This is most likely because the box your trying to do smbclient uses an outdated (and insecure) version of SMB such as SMBv1.

You'll need to edit the smb.conf in your machine and specify the client min protocol into CORE . You'll also need to specify the client max protocol into SMB3 .

More information here: https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

Steps: On your host machine:

  1. sudo nano /etc/samba/smb.conf
  2. Add the following settings under Global Settings:
    client min protocol = CORE
    client max protocol = SMB3
  3. Write (Ctrl + O) and Exit (Ctrl + X) nano text editor.
  4. Retry smbclient

smb.conf 截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM