{"id":13548973,"url":"https://github.com/lima-vm/sshocker","last_synced_at":"2025-05-15T03:07:55.077Z","repository":{"id":37965934,"uuid":"297068457","full_name":"lima-vm/sshocker","owner":"lima-vm","description":"ssh + reverse sshfs + port forwarder, in Docker-like CLI (predecessor of Lima)","archived":false,"fork":false,"pushed_at":"2025-04-21T13:44:57.000Z","size":185,"stargazers_count":606,"open_issues_count":6,"forks_count":29,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-21T14:53:07.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lima-vm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2020-09-20T12:11:43.000Z","updated_at":"2025-04-21T13:45:01.000Z","dependencies_parsed_at":"2023-12-11T12:54:09.345Z","dependency_job_id":"849e8015-f7c7-4554-a951-3fd6a9af1a2f","html_url":"https://github.com/lima-vm/sshocker","commit_stats":null,"previous_names":["akihirosuda/sshocker"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lima-vm%2Fsshocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lima-vm%2Fsshocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lima-vm%2Fsshocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lima-vm%2Fsshocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lima-vm","download_url":"https://codeload.github.com/lima-vm/sshocker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254264769,"owners_count":22041794,"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":[],"created_at":"2024-08-01T12:01:16.727Z","updated_at":"2025-05-15T03:07:50.060Z","avatar_url":"https://github.com/lima-vm.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# sshocker: ssh + reverse sshfs + port forwarder, in Docker-like CLI\n\n```console\n$ sshocker -p 8080:80 -v .:/mnt/sshfs user@example.com\n```\n* Forward connections to the port 8080 on the client to the port 80 on `example.com`\n* Mount the current directory on the client as `/mnt/sshfs` on `example.com`\n\nThis is akin to `docker run -p 8080:80 -v $(pwd):/mnt IMAGE`, but `sshocker` is for remote hosts, not for containers.\n\n## Install\n\nDownload from https://github.com/lima-vm/sshocker/releases .\n\nTo download using curl:\n```\ncurl -o sshocker --fail -L https://github.com/lima-vm/sshocker/releases/latest/download/sshocker-$(uname -s)-$(uname -m)\nchmod +x sshocker\n```\n\nTo compile from source:\n```console\nmake\nsudo make install\n```\n\nTested on macOS client and Linux server. May not work on other environments, especially on Windows.\n\nTo use reverse sshfs, `sshfs` needs to be installed on the server (not on the client):\n\n```console\n$ ssh user@example.com -- sudo apt-get install -y sshfs\n```\n\n## Usage\nGlobal flags:\n* `--debug=(true|false)` (default: `false`): debug mode\n\n### Subcommand: `run` (default)\nsshocker's equivalent of `docker run`.\n\ne.g.\n```console\n$ sshocker run -p 8080:80 -v .:/mnt/sshfs user@example.com\n```\n\n`run` can be omitted, e.g.\n```console\n$ sshocker -p 8080:80 -v .:/mnt/sshfs user@example.com\n```\n\nFlags (similar to `docker run` flags):\n* `-v LOCALDIR:REMOTEDIR[:ro]`: Mount a reverse SSHFS\n* `-p [[LOCALIP:]LOCALPORT:]REMOTEPORT`: Expose a port\n\nSSH flags:\n* `-F`, `--ssh-config=FILE`: specify SSH config file used for `ssh -F`\n* `--ssh-persist=(true|false)` (default: `true`): enable ControlPersist\n\nSSHFS flags:\n* `--sshfs-noempty` (default: `false`): enable sshfs nonempty\n\nSFTP server flags:\n* `--driver=DRIVER` (default: `auto`): SFTP server driver. `builtin` (legacy) or `openssh-sftp-server` (robust and secure, recommended).\n   `openssh-sftp-server` is chosen by default when the OpenSSH SFTP Server binary is detected.\n* `--openssh-sftp-server=BINARY`: OpenSSH SFTP Server binary.\n   Automatically detected when installed in well-known locations such as `/usr/libexec/sftp-server`.\n\n### Subcommand: `help`\nShows help\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flima-vm%2Fsshocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flima-vm%2Fsshocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flima-vm%2Fsshocker/lists"}