Dettagli
  • Last release: 1.0.0
  • 2 mesi fa

Mount remote SFTP as a local directory on NAS (sshfs)

sshfs command line added to NAS $PATH

Mounting

Usage:
sshfs mount {mountpoint} [flags]

Flags:
-a, --address string ssh server address (default "127.0.0.1:22")
-h, --help help for mount
-p, --password string ssh password
-r, --root string ssh root (default "/opt")
-u, --username string ssh username (default "root")
To mount secrets, first create a mountpoint (mkdir test), then use sshfs to mount:

sshfs mount -a 10.10.10.10:22 -u root -p ****** --log-level debug -r /tmp/test /opt/data/tmp


Docker untested

Usage:
sshfs docker {mountpoint} [flags]

Flags:
-a, --address string ssh server address (default "127.0.0.1:22")
-h, --help help for docker
-p, --password string ssh password
-s, --socket string socket address to communicate with docker (default "/run/docker/plugins/ssh.sock")
-u, --username string ssh username (default "root")
To start the Docker plugin, create a directory to hold mountpoints (mkdir test), then use sshfs to start the server. When Docker volumes request a volume (docker run --volume-driver vault --volume {prefix}:/container/secret/path), the plugin will create mountpoints and manage FUSE servers automatically.

sshfs docker /mnt/sshfs -a 10.10.10.10:22 -u root -p ****** --log-level debug -r /tmp/test
ls /run/docker/plugins/
ssh.sock
docker run --rm -it -v myvola:/data --volume-driver=ssh alpine sh
docker volume ls
DRIVER VOLUME NAME
ssh myvola

QTS
To be used with

Models
TS-X28A TS-NASX86 TS-NASX86 64bits TS-X31 TS-X41 TS-ARM-X19

Thanks for your support
No older version