Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSHFS launchdaemon returns "Host key verification failed" #75

Open
newmediacrew opened this issue Jun 22, 2022 · 0 comments
Open

SSHFS launchdaemon returns "Host key verification failed" #75

newmediacrew opened this issue Jun 22, 2022 · 0 comments

Comments

@newmediacrew
Copy link

Problem

  • Trying to use SSHFS on startup, but with the launchdaemon configured the identity file fails.

Version

  • Installed with "brew install sshfs"
  • SSHFS version 2.10
  • FUSE library version: 2.9.9

What works

  • id_rsa file has permissions set to 777 for testing purposes.
  • Running from terminal works perfectly.
    /opt/homebrew/bin/sshfs -d -o IdentityFile=/Library/LaunchDaemons/id_rsa [email protected]..:/ /Users/macbookpro2017/mnt/test

Plist file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>local.automount.sshfs</string>
        <key>ProgramArguments</key>
        <array>
            <string>/opt/homebrew/bin/sshfs</string>
            <string>-d</string>
	    <string>-o</string>
            <string>IdentityFile=/Library/LaunchDaemons/id_rsa</string>
            <string>[email protected]:/</string>
            <string>/Users/macbookpro2017/mnt/test</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
	<key>StandardOutPath</key>
	<string>/var/log/sshfs.log</string>
	<key>StandardErrorPath</key>
	<string>/var/log/sshfsError.log</string>
    </dict>
</plist>

Log

nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
Host key verification failed.
remote host has disconnected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant