265 bytes added ,  14 June 2016
→‎Tunneling SMB mount through SSH: add optional parameters
m add a space
→‎Tunneling SMB mount through SSH: add optional parameters
Line 8: Line 8:
<source lang="bash">
<source lang="bash">
$ sudo ssh -p 2323 -l mhan -L 139:localhost:139 pisteos.hanovate.com
$ sudo ssh -p 2323 -l mhan -L 139:localhost:139 pisteos.hanovate.com
</source>
The above actually logs you in while forwarding the port. Optionally, you can add these parameters to suppress the log-in and only forward the port via SSH.
<source lang="bash">
$ sudo ssh -2qfNg -p 2323 -l mhan -L 139:localhost:139 pisteos.hanovate.com
</source>
</source>


Line 16: Line 22:
$ mount -t smbfs //localhost:139/sharename /Volumes/sharename
$ mount -t smbfs //localhost:139/sharename /Volumes/sharename
</source>
</source>


== Changing hostname that shows up on CLI ==
== Changing hostname that shows up on CLI ==