Failed to Mount windows Share: Software caused Connection Abort

On Linux mint 20 Cinnamon

Unable to connect to samba share.

2020-10-09_19-26

BTW: Same share is easily accessible on another pc running windows 7.

It would help us a lot in helping you, if you would provide a very detailed and elaborate step by step description of what exactly you tried to do and what exactly the results of those actions were.

1 Like

Step 1: Open Nemo (File Browser version 4.6.5) available by default in Statusbar Panel
Step 2: Select Menu β€œFile”
Step 3: Select Sub Menu β€œConnect to Server”
Step 4: Enter all required details on next window regarding the windows shares.
Step 5: Click Connect Button availabe on window.
Step 6: Read the error that has prompted on top.

Those are the steps I perform every time.
2020-10-09_19-26 2020-10-09_20-49 2020-10-09_20-53

Thanks for responding.

Is it correct, that no port has to be explicitly provided?

Can you connect to this IP address (and port?) with ncat or telnet?

Can you connect to this Samba share with the same details from a different computer, perhaps even with Windows on it?

Dear Akito, Below are the answers.

Is it correct, that no port has to be explicitly provided? >>> Yes

Can you connect to this IP address (and port?) with ncat or telnet ? >>> I have no idea about these tools and how to use them. But I can confirm that ping is working.
2020-10-10_11-03
Also, I am able to access a web server running on same machine through web browser firefox and hence I believe that connectivity is not a problem.
2020-10-10_11-07
Can you connect to this Samba share with the same details from a different computer, perhaps even with Windows on it? >>> Yes, they are working fine on another, same network, windows PC

These answers help a lot, thank you.

This article shows a couple of possible ports of which one is most likely used for your Samba share.

To check what ports are accessible from your machine, first install netcat:

sudo apt update
sudo apt install -y netcat

Then save the following script, run it and post its results in this thread.

#!/bin/bash
## https://www.cyberciti.biz/faq/what-ports-need-to-be-open-for-samba-to-communicate-with-other-windowslinux-systems/

declare -r address="192.168.29.6"
declare -a port_list=( \
                        137 \
                        138 \
                        139 \
                        389 \
                        445 \
                        901
                      )

for port in "${port_list[@]}"; do
  nc -vzw5 "${address}" "${port}" && \
  echo "Successfully connected to \"${address}:${port}\"!" || \
  echo "Failed to connect to \"${address}:${port}\"."
done

echo "Done."
1 Like

nc: connect to 192.168.29.6 port 137 (tcp) failed: Connection refused
Failed to connect to β€œ192.168.29.6:137”.
nc: connect to 192.168.29.6 port 138 (tcp) failed: Connection refused
Failed to connect to β€œ192.168.29.6:138”.
Connection to 192.168.29.6 139 port [tcp/netbios-ssn] succeeded!
Successfully connected to β€œ192.168.29.6:139”!
nc: connect to 192.168.29.6 port 389 (tcp) failed: Connection refused
Failed to connect to β€œ192.168.29.6:389”.
Connection to 192.168.29.6 445 port [tcp/microsoft-ds] succeeded!
Successfully connected to β€œ192.168.29.6:445”!
nc: connect to 192.168.29.6 port 901 (tcp) failed: Connection refused
Failed to connect to β€œ192.168.29.6:901”.
Done.

I tried it in one more linux distribution and surprisingly it is working there.

2020-10-10_18-45

2020-10-10_18-42

2020-10-10_19-33

All this is very weird. Perhaps a nemo specific issue.



https://forums.linuxmint.com/viewtopic.php?t=220721

If you are fine with using something else, perhaps you should try a client different from nemo.

1 Like

Thanks.

The reddit link did the work.

"edit the file /etc/samba/smb.conf

Under [global] section, add the following:

client min protocol = CORE

Save smb.conf and exit."

1 Like