Connect to Windows 10 Share (SMB1 succeeds, SMB2 fails)
Problem description: that mounting SMB1 on a Windows 10 computer works as follows because "SMB1 Support" is enabled:
When I disable "SMB1 support" on the Windows 10 machine AND type at "vers=2.0 or 2.1", I get the following error message back from the SSH console:
Can you please help me to find the correct command line to "negotiate" modern SMB2 shares on a modern computing environment?
Thank you very much!
mount -t cifs -o user=USER,password=USER,vers=1.0 //192.168.1.222/SHARE /tmp/test
When I disable "SMB1 support" on the Windows 10 machine AND type at "vers=2.0 or 2.1", I get the following error message back from the SSH console:
"failed: Host is down"
Can you please help me to find the correct command line to "negotiate" modern SMB2 shares on a modern computing environment?
Thank you very much!
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 7365366884
Url: https://administrator.de/contentid/7365366884
Ausgedruckt am: 23.11.2024 um 00:11 Uhr
10 Kommentare
Neuester Kommentar
Hi,
What or who is your SSH host? Not only SMBv1 disabled, but also SMBv2/3 enabled?
https://learn.microsoft.com/en-gb/windows-server/storage/file-server/tro ...
https://www.automobilwoche.de/agenturmeldungen/ford-verabschiedet-sich-v ...
Regards,
Peter
What or who is your SSH host? Not only SMBv1 disabled, but also SMBv2/3 enabled?
https://learn.microsoft.com/en-gb/windows-server/storage/file-server/tro ...
https://www.automobilwoche.de/agenturmeldungen/ford-verabschiedet-sich-v ...
Regards,
Peter
Did you try the mount command without a Version Parameter?
lks
Btw: which samba version do you use?
PS: Try if smbclient works.
lks
Btw: which samba version do you use?
PS: Try if smbclient works.
Then you have to install smbclient on your system. What kind of system are you working on (distribution, kernel version, etc.)(
Which SMB dialects your version of CIFS supports, can be read by issuing the following command:
The output should be similar to this (example from current Archlinux distro)
Try to install smbclient via your package manager and use the parameter -d 10 to enable verbose debug messages. (Older versions had a max level of 255 newer ones only 0-10, just try out the values).
Also try to add the verbose parameter to the mount command
Regards
(uname -a
) I am asking because you are working with the ash shell, that usually mean you are working on an embedded or like system where memory is crucial. It could be that this system currently does not support higher SMB Versions as 1.0.Which SMB dialects your version of CIFS supports, can be read by issuing the following command:
/sbin/modinfo cifs
The output should be similar to this (example from current Archlinux distro)
Try to install smbclient via your package manager and use the parameter -d 10 to enable verbose debug messages. (Older versions had a max level of 255 newer ones only 0-10, just try out the values).
smbclient -L //server/share -U <username> -d 10
Also try to add the verbose parameter to the mount command
mount -t cifs --verbose -o user=username,password=passw0rd //server/share /mnt
Zitat von @FordPerfect:
SMBCLIENT is not available for my device, however - I found these here, which supposedly are possible to install:
SMBCLIENT is not available for my device, however - I found these here, which supposedly are possible to install:
What kind of machine and Distribution are you using?
opkg install samba4-utils
opkg install samba4-libs
opkg install samba4-client
This should do it.
lks
Zitat von @Lochkartenstanzer:
This should do it.
Yes, indeed.opkg install samba4-utils
opkg install samba4-libs
opkg install samba4-client
opkg install samba4-libs
opkg install samba4-client
This should do it.