Does anyone out there who more awake/intelligent than I know how to mount an SMB shared drive through an SSH session?

I'm trying to get a Debian server I use at work to mount to the company's shared Windows drive so I can draw some info directly from the source, but I'm damned if I can get it to accept the credentials. My local machine (Ubuntu) is mounted just fine, but the same credentials from the remote computer keep getting rejected.

@DJDarren IIRC samba needed multiple ports to be forwarded. Might be too smart to be mounted over SSH. Alternative would be to have the SMB mounted at SSH server and just use sftp to access it. That works.

#smb #ssh #sftp

@DJDarren wot “cos” said, port forwarding SMB through SSH is tricky.

If you have a Tailscale node on the remote network you could configure it to expose/route the whole network, then just make a normal SMB connection via the tunnel.