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 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.