【发布时间】:2020-04-03 22:34:36
【问题描述】:
我正在尝试在 macOS Catalina 上使用 automount 和 sshfs 设置 SSH 端点的自动挂载。但是,它不起作用,我不知道为什么。
/etc/auto_master
+auto_master # Use directory service
#/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
# custom; auto-mount wolverine (parker lab setup)
/- auto_wolverine -nosuid
/etc/auto_wolverine
/System/Volumes/Data/wolverine/home -fstype=sshfs,reconnect,nodev,follow_symlinks,allow_other,StrictHostKeyChecking=no,IdentityFile=IDFILE,port=PORT,ServerAliveInterval=360,ServerAliveCountMax=3 USER@HOST:/home
/etc/sythetic.conf
wolverine /System/Volumes/Data/wolverine
根据我看到的教程之一,我还将sshfs 二进制文件符号链接到/usr/local/bin/mount_sshfs。
但是,当我尝试打开目标目录时(刷新挂载后),它显示No such file or directory。任何帮助将不胜感激。
【问题讨论】:
-
这似乎不是一个编程问题,在Super User 或Ask Different 上会更合适。
标签: macos macos-catalina sshfs automount