sshfs: Permission denied

  • When I try to

    sshfs -o allow_other,debug [email protected]:~/ /mnt/mount/

    I get following message:

    Code
    SSHFS version 3.7.3
    executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-2> <[email protected]> <-s> <sftp>
    [email protected]: Permission denied (publickey,keyboard-interactive).
    read: Connection reset by peer

    Tried with and without password enabled. I also installed the sftp plugin.

    Running latest libreelec 11.0.1 on a RPi 2. Guest computer runs openSUSE Tumbleweed.

  • @LieberBieber

    Mounting a network drive with 'sshfs' is a bit more difficult than 'curlftpfs', however 'sshfs' is supported in LE and 'curlftpfs' is not.

    Previous commands that must be executed on a LE/CE client device only once before executing 'sshfs' to a LibreELEC or CoreELEC server:

    Code
    ssh-keygen -f "/storage/.ssh/known_hosts" -R "[192.168.xxx.yyy]:22"
    echo n | ssh-keygen -t rsa -f /storage/.ssh/id_rsa
    ssh [email protected] "mkdir -p /storage/.ssh"
    cat /storage/.ssh/id_rsa.pub | ssh [email protected] "cat >> /storage/.ssh/authorized_keys"
    
    # where 192.168.xxx.yyy is the IP address of the LibreELEC or CoreELEC SSH server

    only from now on will 'sshfs' mount commands always work.