I cannot connect to computers on my network running Ubuntu 16.04. I get stuck in a never ending username and password dialog loop forever.

I can ssh into the machine, and I can mount it in filesystem using ssh://hostname/share.

I know this question is a duplicate, but known solutions have not worked for me.

I tried adding

```
client use spnego = no 

```

to my `/etc/samba/smb.conf` file, just below where it says `global` (line 29).

That caused a different error:

> 
> Failed to retrieve share list from server. Connection timed out.
> 
> 
> 

```
smbclient //host/share -U <username>:

NTLMSSP packet check failed due to short signature (0 bytes)!
NTLMSSP NTLM2 packet check failed due to invalid signature!
session setup failed: NT_STATUS_ACCESS_DENIED

```

Any ideas?

I can connect to servers on the network just fine. Right now the only issue seems to be Mac computers. (I haven't had an occasion to try to connect to a windows machine).

I'm new to Ubuntu, so I am unsure what else to try offhand.