{"id":24393580,"url":"https://github.com/sv222/ssh-keypair-gen","last_synced_at":"2026-05-20T01:02:07.431Z","repository":{"id":135305643,"uuid":"604782164","full_name":"sv222/ssh-keypair-gen","owner":"sv222","description":"This Go utility automatically generates a cryptographically stable RSA SSH key pair and outputs the public and private keys.","archived":false,"fork":false,"pushed_at":"2023-02-25T23:00:59.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T18:44:42.874Z","etag":null,"topics":["generator","go","keypair","ssh-keygen"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sv222.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-21T19:26:03.000Z","updated_at":"2023-09-03T17:06:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa2f39bc-42be-44d6-9037-d5db00927853","html_url":"https://github.com/sv222/ssh-keypair-gen","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/sv222%2Fssh-keypair-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv222%2Fssh-keypair-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv222%2Fssh-keypair-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv222%2Fssh-keypair-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sv222","download_url":"https://codeload.github.com/sv222/ssh-keypair-gen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324268,"owners_count":20273099,"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":["generator","go","keypair","ssh-keygen"],"created_at":"2025-01-19T18:40:41.082Z","updated_at":"2025-12-30T02:01:55.652Z","avatar_url":"https://github.com/sv222.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Keypair Generator\n\nThis Go utility automatically generates a cryptographically stable RSA SSH key pair and outputs the public and private keys.\n\n## Installation\n\nTo install and use the SSH keygen utility, follow these steps:\n\n1. Install Go and set up your Go environment. See the [Go installation guide](https://golang.org/doc/install) for more information.\n\n2. Clone this repository:\n\n    ```sh\n    git clone https://github.com/sv222/ssh-keypair-gen.git\n    cd ssh-keypair-gen\n    ```\n\n3. Build the binary:\n\n    ```sh\n    go build -o ssh-keypair-gen\n    ```\n\n## Usage\n\n### Local installation\n\n1. Run the binary with the desired flags. For example, to generate a 4096-bit key and save the private key as `mykey.pem` and the public key as `mykey.pub`, run the following command:\n\n    ```sh\n    ./ssh-keypair-gen --size 4096 --private-key mykey.pem --public-key mykey.pub\n    ```\n\nYou can choose not to pass values, then the names will be given by default and the files will be saved in the current folder.\n\n```sh\n./ssh-keypair-gen\n```\n\n### Docker installation\n\n1. Build the Docker image:\n\n    ```sh\n    docker build -t ssh-keypair-gen .\n    ```\n\n2. Run the Docker container with the desired flags. For example, to generate a 4096-bit key and save the private key as `mykey.pem` and the public key as `mykey.pub`, run the following command:\n\n    ```sh\n    docker run -v $(pwd):/keys ssh-keypair-gen --private-key /keys/id_rsa.pem --public-key /keys/id_rsa.pub\n    ```\n\nThe above command uses the `-v` flag to mount the current directory as a volume inside the container, and the `-w` flag to set the working directory inside the container to `/app`, which is where the binary and output files are located.\n\nReplace \"my-go-app\" with the name you gave to the Docker image when you built it.\n\n## Contribution\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv222%2Fssh-keypair-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsv222%2Fssh-keypair-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv222%2Fssh-keypair-gen/lists"}