Reference: SSH
Not logged in


SSHFS

On Linux the SSHFS allows to mount any other computer with an SSH-account as if it were a USB-stick. The mounting is done as an ordinary user, not as root. As of 2020 the usage instructions are roughly as described at the sub-sections of this section.

SSHFS Setup

    MINA=`whoami` # There's a group named "fuse" and it kind of "exists by default".
    sudo modprobe fuse  # Loads kernel modules, drivers, etc.
    sudo useradd -G fuse $MINA
    sudo chown root:fuse /dev/fuse
    sudo chmod +x /usr/bin/fusermount
    sudo chmod 0777 /dev/fuse # I couldn't figure out, how to do it otherwise

SSHFS Usage


    # First, unmount. It's OK, if it wasn't mounted before.
fusermount -u <full path to the mounting point at the ssh client side>
    # Now the mounting command.
sshfs -oport=<port number> <username>@<ipaddress>:<fullpath at the server> <full path to the mounting point at the ssh client side>
    # Optionally the mounting command can be used with various traditional SSH connection parameters.
sshfs -oport=<port number> <username>@<ipaddress>:<fullpath at the server> <full path to the mounting point at the ssh client side> -o IdentityFile=$HOME/.ssh/privatekey.txt "



Attachments: