8

Having the IP, under Linux how can I access shared smb files?

When I type in for example:

smb://192.168.0.50 I get an error message.

DeerPole
  • 91
  • 1
  • 1
  • 2

3 Answers3

5

If you're sure the destination machine is running samba, you can pass an explicit IP to smbclient or mount.cifs:

smbclient //<samba_name>/<share> -I <machine ip to connect to>

mount -t cifs //<samba_name>/<share> <mount point> -o ip=<machine ip to connect to>
oakad
  • 524
  • 2
  • 6
2
smbclient -N -L YOUR_TARGET_IP

This will list all the shares in SMB service.

ᄂ ᄀ
  • 344
  • 3
  • 9
0

You need to provide a different client max protocol which can be done using -m tag.

just use the below command :-

smbclient //192.168.0.50/sharedFolderName/ -m SMB3