{"id":17654273,"url":"https://github.com/pgaskin/ssh-sk-provider-gms","last_synced_at":"2025-04-28T12:02:24.254Z","repository":{"id":217617441,"uuid":"744296248","full_name":"pgaskin/ssh-sk-provider-gms","owner":"pgaskin","description":"OpenSSH security key provider for Play Services on Android. WIP.","archived":false,"fork":false,"pushed_at":"2024-01-17T07:52:28.000Z","size":67,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T09:22:57.532Z","etag":null,"topics":["android","fido2","openssh","termux","webauthn","yubikey"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgaskin.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}},"created_at":"2024-01-17T02:12:29.000Z","updated_at":"2025-01-24T15:27:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cac8e0f-18c6-4fd3-90e4-e5e652aec9fd","html_url":"https://github.com/pgaskin/ssh-sk-provider-gms","commit_stats":null,"previous_names":["pgaskin/ssh-sk-provider-gms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Fssh-sk-provider-gms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Fssh-sk-provider-gms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Fssh-sk-provider-gms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Fssh-sk-provider-gms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaskin","download_url":"https://codeload.github.com/pgaskin/ssh-sk-provider-gms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311332,"owners_count":21569008,"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":["android","fido2","openssh","termux","webauthn","yubikey"],"created_at":"2024-10-23T12:09:18.117Z","updated_at":"2025-04-28T12:02:24.227Z","avatar_url":"https://github.com/pgaskin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003essh-sk-provider-gms\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/pgaskin/ssh-sk-provider-gms/actions/workflows/ci.yml\"\u003e\u003cimg align=\"right\" src=\"https://github.com/pgaskin/ssh-sk-provider-gms/actions/workflows/ci.yml/badge.svg\" alt=\"ci\"\u003e\u003c/a\u003e\n\n**OpenSSH security key provider for Play Services on Android.**\n\n\u003e [!IMPORTANT]\n\u003e This is still a work-in-progress, and is not functional yet.\n\n\u003e [!NOTE]\n\u003e Setting a custom relying party (i.e., application ID) and enumerating keys requires access to the [`Fido2PrivilegedApiClient`](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/Fido2PrivilegedApiClient), which uses a whitelist of app certificates. Without this, resident keys cannot be enumerated (i.e., `ssh-add -K`), and the application ID for all keys is chosen by GMS based on the app certificate (meaning you must generate new keys for each app).\n\n#### Usage\n\n1. Ensure `libssh-sk-provider-gms.so` and `libssh-sk-provider-dms.dex` are in the same directory.\n2. For `ssh-keygen` and `ssh-add`, set the `SSH_SK_PROVIDER` env var to the path of `libssh-sk-provider-gms.so`.\n3. For `ssh`, set the `SecurityKeyProvider` ssh option to the path of `libssh-sk-provider-gms.so`.\n4. To generate a new key, TODO.\n\n#### Build\n\nEnsure `ANDROID_HOME` is set to the path of the sdk installation (including build tools 33 and the NDK) and a Java 17+ installation is in your `PATH`.\n\n```bash\n# build\n$ ./gradlew app:assembleDebugProvider\n\n# extract (e.g., in Termux)\n$ tar xf /path/to/app/build/outputs/provider/debug/provider-debug.tar --transform 's#^.+/##x' libssh-sk-provider-gms.dex lib/$(getprop ro.product.cpu.api)/libssh-sk-provider-gms.so\n```\n\nYou can [download](https://nightly.link/pgaskin/ssh-sk-provider-gms/workflows/ci/master/provider-debug) CI artifacts from GitHub Actions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Fssh-sk-provider-gms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaskin%2Fssh-sk-provider-gms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Fssh-sk-provider-gms/lists"}