Benches macOS

3

SMB over SSH failing to connect with "…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

About two months ago I had my computer set up to connect to samba shares on my home PC over SSH. Here's how that worked...

1. On my Mac I set up a localhost alias at 127.0.0.2.

2. I connect to SSH and tunnel the port 445 (smb)

3. Connect to smb://127.0.0.2 or use mount_smbfs

It worked fine, no problems.

Now, although I don't think anything has changed... this has stopped working. I can still connect to the shares locally and I can still connect via SSH, but when I try to connect via the previously described method I get the following errors.

If I try to connect through the "Connect to Server..." then I get this in the Console:

6/21/10 11:53:25 AM /System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthAgent1208 smb_mount: mount failed to 127.0.0.2/Shared : syserr = RPC struct is bad

Or if I try to connect through mount_smbfs I get:

mount_smbfs: mount error: /Volumes/Shared: RPC struct is bad

Oddly enough, connecting through the smbclient command seems to work fine.

Things I've tried:

• Restarted "server" service on remote PC.

• Restarted remote PC.

• Restarted Macbook Pro

• Create a /etc/nsmb.conf and use minauth to turn NTLMv2 off (and I tried messing with some other settings)

• On the computer I'm trying to connect to, "Disable NetBIOS over TCP/IP" then set it back to the default setting.

• Create a new user on remote PC and add it to the share and tried connecting.

• Set passwords on remote machine to never expire.

I just don't know what else to do! I kind of doubt that anyone on here will be able to help me but I thought it was worth a shot..

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    nowaybs

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I am having a similar problem.

    Trying to connect to an older NAS which works fine for Win XP also gives me

    the "RPC struct is bad" error (no SSH tunnel involved here, though).

    However, connection via smbclient works.

    I also don't know what may help. What may be the source of the error? Maybe some protocol violation by the NAS?

    Thanks.

  2. 0

    g_wolfman

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm no smb expert, but I have seen similar posts in FreeBSD mailing lists. In those cases the problem was (sort of) on the Windows side. The server was sending back messages that the client didn't know how to deal with.

    For example, in one case the password wasn't set to never expire - when it did and the server send back a "your password has expired, please change it" message, the RPC struct is bad error resulted on the client.

    So, I guess I'm saying you might want to check your server configuration, especially for the user profiles, again.

  3. 0

    lococobra

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yeah, as I said in the original post I've already tried that. First I tried setting the password on the account I was connecting to to never expire, then when that didn't work I tried creating an all new user account.

    The thing that seems strange to me is that smbclient works. To me, that suggests that the problem is with the Mac OS software.