OS X: Difference between revisions

590 bytes added ,  14 June 2016
add Tunneling SMB mount through SSH
→‎Change hostname that shows up on CLI: add an optional reference
add Tunneling SMB mount through SSH
Line 1: Line 1:
== Change hostname that shows up on CLI ==
== Tunneling SMB mount through SSH ==
 
* ''Last tested on OS X El Capitan 10.11.5''
* ''Base reference: [http://www.csd.uwo.ca/staff/amulder/HowTo/mac-smb.html]
 
On one of the CLIs type the following. I'm assuming username (for connecting to my server) is "mhan" and the server address to be "pisteos.hanovate.com".
 
<source lang="bash">
$ sudo ssh -p 2323 -l mhan -L 139:localhost:139 pisteos.hanovate.com
</source>
 
Then on a separate terminal type the following:
 
<source lang="bash">
$ mkdir /Volumes/sharename
$ mount -t smbfs //localhost:139/sharename /Volumes/sharename
</source>
 
== Changing hostname that shows up on CLI ==


* ''Last tested on OS X El Capitan 10.11.5''
* ''Last tested on OS X El Capitan 10.11.5''