2021年2月5日金曜日

smb over ssh macOS 10.15

I've setuped smb over ssh on macOS 10.15. I've reffered the blog(in Japanese) as following

#7 SSH Port Forwardingあれこれ(2)Mac編
https://sites.google.com/site/satchansmaclife/home/ssh-port-forwardingarekore--2-machen
At first, I've read the blog(also in Japanese) as follwing:
MacからSSHポートフォワードで自宅のSambaにアクセスする
but, I could not setup well. And then, I've found the explanation in first blog: 
Connect to the server: smb://localhost/share_volume_name 
* You should specify the smb volume name , like "share"

so, It works well. And the second blog's instruction:

Add "127.0.0.2" to loopback interface.

is not needed.  Setup instruction for smb over ssh is following:

At first:

$ ssh -p ssh_server_port -L 127.0.0.1:8139:smbhost.example.com:139 user@sshhost.example.com
Then,  In Finder of macOS,  you may select "Connect to server", and input like this
smb://127.0.0.1:8139/project
You should specify volume name like "project".