mountpoint Z:
mkdir Z
set-up Local listener tunnel, 9445 is my choice, my-fileserver is the hostname on the remote network, 445 is the actual SMB listener number port, files.network.org, is my ssh entry to the remote network. -f Fork/background listener, N no command.
ssh -L 9445:my-fileserver:445 -fN files.network.org
Mount CIFS type, localhost is this machine, /files/ is the share on the remote file server, Z is my mountpoint. remoteuser is the user on the file server, uid i can't remember, noperm means don't locally worry about permissions, port should be the tunnel choice above.
sudo mount -t cifs //localhost/files/ Z/ -o username=remoteuser,uid=5000,rw,noperm,port=9445
mkdir Z
set-up Local listener tunnel, 9445 is my choice, my-fileserver is the hostname on the remote network, 445 is the actual SMB listener number port, files.network.org, is my ssh entry to the remote network. -f Fork/background listener, N no command.
ssh -L 9445:my-fileserver:445 -fN files.network.org
Mount CIFS type, localhost is this machine, /files/ is the share on the remote file server, Z is my mountpoint. remoteuser is the user on the file server, uid i can't remember, noperm means don't locally worry about permissions, port should be the tunnel choice above.
sudo mount -t cifs //localhost/files/ Z/ -o username=remoteuser,uid=5000,rw,noperm,port=9445
No comments:
Post a Comment