{"id":13563135,"url":"https://github.com/WillFantom/sshare","last_synced_at":"2025-04-03T19:32:25.194Z","repository":{"id":128464869,"uuid":"576881483","full_name":"WillFantom/sshare","owner":"WillFantom","description":"Quickly share curlable links to your SSH pub keys (from agent,github,file,raw) 🔑","archived":false,"fork":false,"pushed_at":"2024-05-06T16:28:45.000Z","size":101,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-04T15:52:19.710Z","etag":null,"topics":["authorized-keys","ssh-agent","ssh-keys","transfer-sh","transfersh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/WillFantom.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":"2022-12-11T09:45:52.000Z","updated_at":"2023-06-21T20:55:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad6bd25a-056b-4b27-8d14-9f99488167c8","html_url":"https://github.com/WillFantom/sshare","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillFantom%2Fsshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillFantom%2Fsshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillFantom%2Fsshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillFantom%2Fsshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillFantom","download_url":"https://codeload.github.com/WillFantom/sshare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247065407,"owners_count":20877769,"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":["authorized-keys","ssh-agent","ssh-keys","transfer-sh","transfersh"],"created_at":"2024-08-01T13:01:15.509Z","updated_at":"2025-04-03T19:32:24.951Z","avatar_url":"https://github.com/WillFantom.png","language":"Go","readme":"# SSHare    ![GitHub release (latest SemVer)](https://img.shields.io/github/v/tag/willfantom/sshare?display_name=tag\u0026label=%20\u0026sort=semver)  ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/willfantom/sshare/release.yml?label=%20\u0026logo=github)\n\nQuickly share SSH keys from your agent as `curl`able links! Use the `sshare` TUI to easily select keys from an SSH agent and automatically generate a [`transfer.sh`](https://transfer.sh) upload that can easily be added to an authorized key file via `curl`. \n\n---\n\n## Install \n\n - **Linux**\n   - Download the appropriate version for your system from the [GitHub release page](https://github.com/WillFantom/sshare/releases)\n   - Move the `sshare` binary to a directory in your `PATH`\n - **MacOS**\n   - Download and install via Homebrew: \n      ```\n      brew install willfantom/tap/sshare\n      ```\n\n## Usage\n\nSimply run: `sshare`\n\nSensible defaults are used, such as connecting to the SSH agent as defined by the `SSH_AUTH_SOCK` environment variable.\n\n- To include keys that are not found in your agent, you can specify a file containing the public key with the `-f` flag (and can be specified multiple times):\n\n  ```\n  sshare -f ~/.ssh/id_rsa.pub\n  ```\n\n- An SSH agent socket path other than the one found in `SSH_AUTH_SOCK` can be provided using the `-a` flag:\n\n  ```\n  sshare -a /tmp/ssh-XXXXXXanCbmG/agent.8\n  ```\n\n- Add keys from a generated link to an `authorized_keys` file:\n\n  ```\n  curl --fail-with-body \u003cdownloadURL\u003e \u003e\u003e ~/.ssh/authorized_keys\n  ```\n\n- Uploads can be deleted by either:\n  - Opening the downloaded link in a browser and deleting the key using the given deletion code\n  - By running the `delete` command of `sshare`:\n    ```\n    sshare delete \u003cdownloadURL\u003e \u003cdeletionCode\u003e\n    ```\n  - Or by running:\n    ```\n    curl -X DELETE \u003cdownloadURL\u003e/\u003cdeletionCode\u003e\n    ```\n\n- Also provide your GitHub SSH keys as options for keys to share:\n  ```\n  sshare -g \"\u003ca github access token with read ssh keys permission\u003e\"\n  ```\n\n---\n\n```\nShare your public SSH keys found in your agent via curl-able transfer.sh links.\n\nUsage:\n  sshare [flags]\n  sshare [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  delete      Delete an uploaded authorized_keys file\n  help        Help about any command\n\nFlags:\n  -a, --agent string           path to the target ssh agent socket ($SSH_AUTH_SOCK) (default \"~/.1password/agent.sock\")\n  -g, --github-token string    github token with permission to read ssh keys\n  -h, --help                   help for sshare\n  -k, --key stringArray        additional keys to include in the generated authorized_keys\n  -f, --key-file stringArray   additional key file(s) to include in the generated authorized_keys\n  -d, --max-days int           number of days that the content will remain available via transfer.sh (default 2)\n  -m, --max-downloads int      maximum number of times any content shared can be downloaded (default 10)\n  -p, --passphrase string      passphrase for the ssh agent\n\nUse \"sshare [command] --help\" for more information about a command.\n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWillFantom%2Fsshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWillFantom%2Fsshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWillFantom%2Fsshare/lists"}