I'm trying to create my first .plist. I want to mount a ssh drive on login so i don't have to enter the command each time I start my Mac!
The command is:
sshfs -o allow_other,defer_permissions email@example.com:/home/user/ /Users/user/Desktop/Website/ -o reconnect
The plist looks like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$ <plist version="1.0"> <dict> <key>Label</key> <string>name.plist</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/sshfs</string> <string>-o allow_other,defer_permissions</string> <string>firstname.lastname@example.org:/home/user</string> <string>/mnt/User</string> <string>-o reconnect,volname=User</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
I've followed a tutorial saying when done with the .plist I have to run these 2 commands:
launchctl load ~/path/name.plist launchctl start ~/path/.name.plist
It then returns
Invalid property list
I saw Launchctl says plist is invalid, plutil says it's OK, where it says i should replace the first few lines but no change? plutil return ok when run so I'm lost!
I've used the template below posted by user3439894. This time it loads properly but when I start it nothing happens
When I look at the systemlog there is nothing posted about it....
About the path to sshfs i've tried 2 things:
- I've left it as it stood in the example given below.
- I've done a suggested and added the path again /usr/local/bin/sshfs