Closed daeh closed 6 months ago
Is it sshfs? Let me check and get back to you with instructions
Yeah
sshfs MITbase:/users/daeh /Users/dae/mountpoints/home
where the ssh config is
Host MITbase
Protocol 2
HostName myserver.mit.edu
User daeh
UseKeychain yes
IdentityFile ~/.ssh/id_mit_rsa
Ciphers aes128-gcm@openssh.com
MACs umac-64@openssh.com,umac-64-etm@openssh.com,umac-128@openssh.com,umac-128-etm@openssh.com
Compression no
What is the output of ls -al /Users/dae/mountpoints/home
on you mac when sshfs folder is not mounted?
I assume that the files and folders owner on the ssh server is 'daeh'?
I assume that there's a mismatch between your local mac user and and the remote ssh server.
Try adding -o idmap=user
to the sshfs command.
What is the output of
ls -al /Users/dae/mountpoints/home
on you mac when sshfs folder is not mounted? I assume that the files and folders owner on the ssh server is 'daeh'?
You mean the ls of /users/daeh
? There's nothing in /Users/dae/mountpoints/home
when the drive isn't mounted.
For /users/daeh
, yes, the user is daeh
::
drwxr-xr-x 1 daeh gablab 4.0K Dec 28 14:56 test
drwxr-xr-x 1 daeh gablab 4.0K Apr 28 2023 torch_demo
drwxr-xr-x 1 daeh gablab 4.0K May 2 2023 torch_demo_minimal
Adding -o idmap=user
didn't seem to change anything about how the user is listed or the behavior
sshfs daeh@myserver.mit.edu:/users/daeh /Users/dae/mountpoints/home -o idmap=user
In local mountpoint, /Users/dae/mountpoints/home
❯ mkdir newtest
❯ ls -al
drwxr-xr-x 1 dae staff 4.0K Dec 28 18:07 newtest
❯ mv newtest newtest2
mv: rename newtest to newtest2: Permission denied
looking at the folder created by macOS on the remote, /users/daeh
❯ ls -al
drwxr-xr-x 2 daeh gablab 4.0K Dec 28 18:07 newtest
Here's the output of sshfs daeh@myserver.mit.edu:/users/daeh /Users/dae/mountpoints/home -o idmap=user -o debug
when I made a new folder in finder untitled folder 2
and then tried to rename it to testrename2
.
Looking at the logs I'm seeing something weird:
unique: 7049, opcode: RENAME (12), nodeid: 1599, insize: 74, pid: 0
unique: 7049, error: -78 (Function not implemented), outsize: 16
It seems that I didn't update the sshfs brew package for quite some time and that causes incompatibilities with the current version of the fuse-t. It would take me some time to update the package properly. Meanwhile there are two quicker options: you can build sshfs yourself or just tell me if you have an arm or Intel machine and I'll send you a privately built sshfs package
If you decide to build sshfs yourself follow the instructions:
brew install autoconf automake
git clone https://github.com/macos-fuse-t/sshfs
cd sshfs
autoreconf -vfi
./configure
make
sudo make install
Please tell me how do you want to proceed
Thanks a ton. The make install seemed to go fine but then in trying to mount a drive, I get this error:
dyld[21176]: Symbol not found: _fuse_chan_fd
Referenced from: <9E566557-19D1-3772-ADFE-53906C09ED19> /usr/local/bin/sshfs
Expected in: <no uuid> unknown
[1] 21176 abort sshfs daeh@myserver.mit.edu:/users/daeh /Users/dae/mountpoints/home
I'm using an arm cpu
Please try the latest package: https://drive.google.com/file/d/1QVTyysvi3jsWctc4LLu0InbHmBBMmQzI/view?usp=drive_link
all initial tests work! thank you a ton!
What should be my plan for updating down the road? Should I plan to build and install the sshfs
repo when new version are released
I don't think you need to upgrade if it works, sshfs is a stable package and the code itself hasn't been updated for years
I'm having various permission issues when attempting to write files.
I installed using brew:
and mounted the ssh drives with no options.
I can read files and I can create files and folders, but I get permission errors when renaming directories and editing files.
E.g. when creating a folder, I am prompted to authorize the action
If I authorize it, the folder is created but I cannot rename it
I can create a file (in this case just drag-and-dropping a file). But I cannot edit the file. First I get a lock warning
and if I attempt to save anyway, I get a permission error
The unix permissions look right:
I'm way out of my depth in understanding how all of this works, so apologies. I was using MacFUSE and all of these operations worked before I replaced it with fuse-t. If you have any suggestions about how I should configure things or what I should do to troubleshoot, they'd be greatly appreciated.
Thanks!
MacOS 13.6.3