{"id":16615587,"url":"https://github.com/pschmitt/docker-sshfs","last_synced_at":"2025-03-21T14:31:23.227Z","repository":{"id":141968708,"uuid":"123795188","full_name":"pschmitt/docker-sshfs","owner":"pschmitt","description":"Docker container to mount directories via SSH. For CoreOS Container Linux.","archived":false,"fork":false,"pushed_at":"2024-06-17T18:39:04.000Z","size":44,"stargazers_count":13,"open_issues_count":3,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T02:11:28.336Z","etag":null,"topics":["coreos","coreos-container-linux","docker","ssh","sshfs"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschmitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["pschmitt"],"custom":["https://www.paypal.com/paypalme/pppschmitt"]}},"created_at":"2018-03-04T14:14:08.000Z","updated_at":"2024-07-17T04:48:56.000Z","dependencies_parsed_at":"2024-10-28T10:30:49.515Z","dependency_job_id":"dbacc83e-7180-49e3-8f77-372d8fde98a0","html_url":"https://github.com/pschmitt/docker-sshfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/docker-sshfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815176,"owners_count":20514910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coreos","coreos-container-linux","docker","ssh","sshfs"],"created_at":"2024-10-12T02:09:55.880Z","updated_at":"2025-03-21T14:31:22.936Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":["https://github.com/sponsors/pschmitt","https://www.paypal.com/paypalme/pppschmitt"],"categories":[],"sub_categories":[],"readme":"# sshfs for CoreOS Container Linux\n\n## Usage\n\nThe following command will mount `root@10.0.0.10:/data` to `$PWD/mnt`:\n\n```bash\ndocker run -it --rm \\\n    --cap-add SYS_ADMIN \\\n    --device /dev/fuse \\\n    --name sshfs \\\n    -e UID=1000 \\\n    -e GID=100 \\\n    -v $PWD/mnt:/mount:shared \\\n    -v ~/.ssh/id_ed25519:/config/id_ed25519:ro \\\n    pschmitt/sshfs \\\n    root@10.0.0.10:/data\n```\n\n## Using a jump server\n\nCheck out the following `docker-compose.yaml` that mounts 10.127.0.11's `/data` to `$PWD/mnt`, via `home.example.com`.\n\n```yaml\nversion: '3'\n\nservices:\n  jump-server:\n    image: pschmitt/ssh\n    container_name: jump-server\n    # restart: unless-stopped\n    volumes:\n      - ./config:/config/.ssh:ro\n    command:\n      -o UserKnownHostsFile=/dev/null\n      -o StrictHostKeyChecking=no\n      -o ExitOnForwardFailure=yes\n      -TN -L \"*:22222:10.127.0.11:22\"\n      root@home.example.com\n\n  sshfs:\n    image: pschmitt/sshfs\n    depends_on:\n      - jump-server\n    # restart: unless-stopped\n    cap_add:\n      - SYS_ADMIN\n    devices:\n      - /dev/fuse:/dev/fuse\n    environment:\n      - PORT=22222\n      - UID=500\n      - GID=1000\n    volumes:\n      - ./config/id_ed25519:/config/id_ed25519:ro\n      - ./mnt:/mount:shared\n    command: pschmitt@jump-server:/data\n```\n\n\n## Authentification\n\n### Password auth (discouraged)\n\nSet the remote's password via the `SSHPASS` env var.\n\n### RSA keys\n\nUse the `IDENTITY_FILE` env variable to set the name of the key. It defaults to\n`/config/id_ed25519`. For an RSA key it should be `/config/id_rsa`.\n\n\n## Options\n\n### Different port\n\nYou can use a alternate port by setting the `PORT` env var.\n\n### Compression\n\nTODO: Not implemented yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-sshfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fdocker-sshfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-sshfs/lists"}