Skip to content

Investigate sshfs slave mode (no need for authentication) #11

@dustymabe

Description

@dustymabe

In libfuse/sshfs@b3af91b the slave mode was added to sshfs which basically allows sshfs to run without making an ssh connection and just accepting input from stdin and sending output to stdout. This means that you can run reverse sshfs mounts without having to authenticate back to the machine initiating the connection.

An example of using this is in the email the author sent to the list:

The attached patch implements a new mode of operation (slave mode) that
uses the stdin and stdout streams for comunication with the SFTP server.

That mode allows to mount a local file system through SSH into a remote
host as follows:

 $ dpipe /usr/lib/openssh/sftp-server = \
     ssh bar sshfs foo:/ /mnt/foo -o slave

And I am sure it can be (ab)used in several other ways :-)

Cheers,

- Salva

I have a working POC on this and am actively trying to get it polished and ready for merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions