{"id":20444820,"url":"https://github.com/balena-io/sshproxy","last_synced_at":"2026-04-02T13:38:34.220Z","repository":{"id":19594027,"uuid":"87436176","full_name":"balena-io/sshproxy","owner":"balena-io","description":"sshproxy is a simple ssh server library exposing an even simpler API","archived":false,"fork":false,"pushed_at":"2026-03-26T17:23:06.000Z","size":963,"stargazers_count":32,"open_issues_count":4,"forks_count":10,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-03-26T20:11:00.254Z","etag":null,"topics":["ssh-server"],"latest_commit_sha":null,"homepage":null,"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/balena-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-06T14:05:21.000Z","updated_at":"2026-03-26T17:28:23.000Z","dependencies_parsed_at":"2022-07-23T13:02:16.501Z","dependency_job_id":"8d09f1ec-0fcd-4360-8ef7-30fce6caa50f","html_url":"https://github.com/balena-io/sshproxy","commit_stats":null,"previous_names":["resin-io/sshproxy"],"tags_count":220,"template":false,"template_full_name":null,"purl":"pkg:github/balena-io/sshproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io%2Fsshproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io%2Fsshproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io%2Fsshproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io%2Fsshproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balena-io","download_url":"https://codeload.github.com/balena-io/sshproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io%2Fsshproxy/sbom","scorecard":{"id":224579,"data":{"date":"2025-08-11","repo":{"name":"github.com/balena-io/sshproxy","commit":"3b7ac62fd9abfc1b1833dcf0c84be21e422e5641"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/flowzone.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/flowzone.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/balena-io/sshproxy/flowzone.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:3: pin your Docker image by updating golang:1.24.6-bookworm to golang:1.24.6-bookworm@sha256:bdc7cfd953b2701fcd95fd591ea3d788f41e4b74f21f1787b9f9843a28e72196","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: 'allow deletion' enabled on branch 'master'","Warn: 'force pushes' enabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: branch 'master' does not require approvers","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Info: 'up-to-date branches' is required to merge on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v6.2.34 not signed: https://api.github.com/repos/balena-io/sshproxy/releases/239509542","Warn: release artifact v6.2.33 not signed: https://api.github.com/repos/balena-io/sshproxy/releases/238427116","Warn: release artifact v6.2.32 not signed: https://api.github.com/repos/balena-io/sshproxy/releases/238412976","Warn: release artifact v6.2.31 not signed: https://api.github.com/repos/balena-io/sshproxy/releases/238080012","Warn: release artifact v6.2.30 not signed: https://api.github.com/repos/balena-io/sshproxy/releases/236541538","Warn: release artifact v6.2.34 does not have provenance: https://api.github.com/repos/balena-io/sshproxy/releases/239509542","Warn: release artifact v6.2.33 does not have provenance: https://api.github.com/repos/balena-io/sshproxy/releases/238427116","Warn: release artifact v6.2.32 does not have provenance: https://api.github.com/repos/balena-io/sshproxy/releases/238412976","Warn: release artifact v6.2.31 does not have provenance: https://api.github.com/repos/balena-io/sshproxy/releases/238080012","Warn: release artifact v6.2.30 does not have provenance: https://api.github.com/repos/balena-io/sshproxy/releases/236541538"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (20) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T03:24:45.766Z","repository_id":19594027,"created_at":"2025-08-17T03:24:45.766Z","updated_at":"2025-08-17T03:24:45.766Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ssh-server"],"created_at":"2024-11-15T10:09:12.228Z","updated_at":"2026-04-02T13:38:34.194Z","avatar_url":"https://github.com/balena-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sshproxy\n\nConfiguration is possible via commandline flags, environment variables\nand config files.\n\nConfig files should be named `sshproxy.\u003cext\u003e` and exist in the sshproxy\nwork dir. The following config file formats are supported:\n\n* [YAML](http://yaml.org) (`sshproxy.yml`)\n* [JSON](http://www.json.org) (`sshproxy.json`)\n* [TOML](https://github.com/toml-lang/toml) (`sshproxy.toml`)\n* [HCL](https://github.com/hashicorp/hcl) (`sshproxy.hcl`)\n* [Java .properties](https://en.wikipedia.org/wiki/.properties) (`sshproxy.properties`)\n\nThere are a total of 15 configuration options and with the exception of `dir`\nthey can all be set via commandline, environment or config file.\n\n| Name               | Commandline                 | Environment                   | Config               |\n|--------------------|-----------------------------|-------------------------------|----------------------|\n| Allow Env          | `--allow-env` `-E`          | `SSHPROXY_ALLOW_ENV`          | `allow-env`          |\n| API Host           | `--apihost`, `-H`           | `BALENA_API_HOST`             | `apihost`            |\n| API Key            | `--apikey`, `-K`            | `SSHPROXY_API_KEY`            | `apikey`             |\n| API Port           | `--apiport`, `-P`           | `BALENA_API_PORT`             | `apiport`            |\n| Auth Failed Banner | `--auth-failed-banner` `-b` | `SSHPROXY_AUTH_FAILED_BANNER` | `auth-failed-banner` |\n| Bind               | `--bind`, `-b`              | `SSHPROXY_BIND`               | `bind`               |\n| Dir                | `--dir`, `-d`               | `SSHPROXY_DIR`                |                      |\n| Idle Timeout       | `--idle-timeout`, `-i`      | `SSHPROXY_IDLE_TIMEOUT`       | `idle-timeout`       |\n| Max Auth Tries     | `--max-auth-tries` `-m`     | `SSHPROXY_MAX_AUTH_TRIES`     | `max-auth-tries`     |\n| Metrics Bind       | `--metrics-bind`, `-M`      | `SSHPROXY_METRICS_BIND`       | `metrics-bind`       |\n| Sentry DSN         | `--sentry-dsn` `-S`         | `SSHPROXY_SENTRY_DSN`         | `sentry-dsn`         |\n| Shell              | `--shell`, `-s`             | `SSHPROXY_SHELL`              | `shell`              |\n| Shell GID          | `--shell-gid`, `-g`         | `SSHPROXY_SHELL_GID`          | `shell-gid`          |\n| Shell UID          | `--shell-uid`, `-u`         | `SSHPROXY_SHELL_UID`          | `shell-uid`          |\n| Use Proxy Protocol | `--use-proxyprotocol`, `-p` | `SSHPROXY_USE_PROXYPROTOCOL`  | `use-proxyprotocol`  |\n| Verbosity          | `--verbosity`, `-v`         | `SSHPROXY_VERBOSITY`          | `verbosity`\t \t  |\n\n```\nUsage of sshproxy:\n  -E, --allow-env string            List of environment variables to pass from client to shell (default: None)\n  -H, --apihost string              Balena API Host (default \"api.balena-cloud.com\")\n  -K, --apikey string               Balena API Key (required)\n  -P, --apiport string              Balena API Port (default \"443\")\n  -B, --auth-failed-banner string   Path to template displayed after failed authentication\n  -b, --bind string                 Address the ssh service will bind to (default \":22\")\n  -d, --dir string                  Work dir, holds ssh keys and sshproxy config (default \"/etc/sshproxy\")\n  -i, --idle-timeout int            Idle timeout (seconds, 0 = none)\n  -m, --max-auth-tries int          Maximum number of authentication attempts per connection (default 0; unlimited)\n  -M, --metrics-bind string         Address the prometheus metrics server should bind to (default: disabled)\n  -S, --sentry-dsn string           Sentry DSN for error reporting\n  -s, --shell string                Path to shell to execute post-authentication (default \"shell.sh\")\n  -g, --shell-gid int               Group to run shell as (default: current gid) (default -1)\n  -u, --shell-uid int               User to run shell as (default: current uid) (default -1)\n  -p, --use-proxyprotocol           Enable Proxy Protocol support\n  -v, --verbosity int               Set verbosity level (0 = quiet, 1 = normal, 2 = verbose, 3 = debug, default: 1) (default 1)\n      --version                     Display version and exit\n```\n\n## Auth Failed Banner/Template\n\nThe 'auth failed banner' is a template rendered and displayed to the user after failed authentication. It should be a\n[Go template](https://golang.org/pkg/text/template/) has two available properties; `.user` and `.fingerprints`.\n\n## Example Usage\n\n```\n% go get github.com/balena-io/sshproxy/balena\n% export SSHPROXY_DIR=$(mktemp -d /tmp/sshproxy.XXXXXXXX)\n% echo -e '#!/usr/bin/env bash\\nenv' \u003e ${SSHPROXY_DIR}/shell.sh \u0026\u0026 chmod +x ${SSHPROXY_DIR}/shell.sh\n  SSHPROXY_PORT=2222 \\\n  SSHPROXY_API_KEY=... \\\n  go run ${GOPATH}/src/github.com/balena-io/sshproxy/main.go\n...\n% ssh -o 'StrictHostKeyChecking=no' \\\n      -o 'UserKnownHostsFile=/dev/null' \\\n    balena@localhost -p2222 -- some command\nWarning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.\nSSH_USER=balena\nPWD=...\nLANG=en_GB.UTF-8\nSHLVL=1\nSSH_ORIGINAL_COMMAND=some command\nLC_CTYPE=en_GB.UTF-8\n_=/usr/bin/env\n```\n\n### Building\n\nThe `Makefile` in the project root contains all necessary rules for linting, testing and building sshproxy packages.\nBuilding via a Docker image can be achieved with, for example:\n`docker run --rm -v $PWD:/go/src/github.com/balena-io/sshproxy golang make -C /go/src/github.com/balena-io/sshproxy lint test release`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io%2Fsshproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalena-io%2Fsshproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io%2Fsshproxy/lists"}