{"id":22434831,"url":"https://github.com/davidgarciacat/ssh-key-manager-cli","last_synced_at":"2025-03-27T08:20:47.533Z","repository":{"id":265181325,"uuid":"865532286","full_name":"DavidGarciaCat/ssh-key-manager-cli","owner":"DavidGarciaCat","description":"A Go-based CLI tool that helps you manage multiple SSH key-pairs for different companies or Git repositories.","archived":false,"fork":false,"pushed_at":"2024-10-03T07:45:46.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T13:16:06.131Z","etag":null,"topics":["go","golang","ssh","ssh-key","ssh-management","ssh-management-cli","ssh-manager","ssh-manager-cli"],"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/DavidGarciaCat.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":"2024-09-30T17:26:09.000Z","updated_at":"2024-10-03T07:45:50.000Z","dependencies_parsed_at":"2024-11-29T01:32:15.996Z","dependency_job_id":null,"html_url":"https://github.com/DavidGarciaCat/ssh-key-manager-cli","commit_stats":null,"previous_names":["davidgarciacat/ssh-key-manager-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGarciaCat%2Fssh-key-manager-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGarciaCat%2Fssh-key-manager-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGarciaCat%2Fssh-key-manager-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGarciaCat%2Fssh-key-manager-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidGarciaCat","download_url":"https://codeload.github.com/DavidGarciaCat/ssh-key-manager-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806459,"owners_count":20675300,"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":["go","golang","ssh","ssh-key","ssh-management","ssh-management-cli","ssh-manager","ssh-manager-cli"],"created_at":"2024-12-05T23:10:55.874Z","updated_at":"2025-03-27T08:20:47.515Z","avatar_url":"https://github.com/DavidGarciaCat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Key-Pair Manager CLI\n\nThis is a Go-based CLI tool that helps you manage multiple SSH key-pairs for different companies or Git repositories. It allows you to switch between SSH certificates, generate new key-pairs, and manage your SSH setup efficiently.\n\n## Features\n\n- List available SSH key-pair and switch between them.\n- Generate new key-pairs with different algorithms.\n- Manage folders for storing key-pairs.\n- Uses default values for algorithms and comments if not provided.\n\n## Installation\n\n1. Clone the repository and navigate to the project folder:\n\n```\ngit clone git@github.com:DavidGarciaCat/ssh-key-manager-cli.git\ncd ssh-key-manager-cli\n```\n\n2. Build the binary:\n\nRun the following command to build the Go binary:\n\n```\ngo build -o ssh-manager main.go\n```\n\n3. Install the binary globally:\n\nTo make the ssh-manager available globally, move it to a directory in your $PATH (e.g., /usr/local/bin):\n\n```\nsudo mv ssh-manager /usr/local/bin/\n```\n\nNow you can run the ssh-manager from any location in your terminal.\n\n## Usage\n\n1. Launch the SSH Key Manager CLI:\n\n```\nssh-manager\n```\n\nExample output:\n\n```\nSSH Key Manager CLI\n-------------------\n\nCurrent active key-pair: _personal\n\n1) Switch SSH key-pair for another system\n2) Generate new SSH key-pair\n3) Quit\n\nChoose an option:\n```\n\n2. Change the active SSH key-pair:\n\n```\n...\nChoose an option: 1\n\nAvailable SSH key-pair folders:\n\n1) _company_a\n2) _company_b\n3) _personal\n\nEnter the number of the folder to switch to:\n```\n\nChoose the new one to switch to it.\n\n```\nEnter the number of the folder to switch to: 1\n\nRemoving SSH key-pair files...\n\nRemoved: /home/\u003cusername\u003e/.ssh/id_ed25519\nRemoved: /home/\u003cusername\u003e/.ssh/id_ed25519.pub\n\nCopying SSH key-pair files...\n\nCopied /home/\u003cusername\u003e/.ssh/_company_a/id_ed25519 to /home/\u003cusername\u003e/.ssh/id_ed25519\nCopied /home/\u003cusername\u003e/.ssh/_company_a/id_ed25519.pub to /home/\u003cusername\u003e/.ssh/id_ed25519.pub\n\nSwitched to _company_a\n```\n\n3. Generate a new SSH key-pair:\n\n```\nChoose an option: 2\n\nEnter the subfolder name for the new key-pair (required): testing key pair\n\nCreated folder: /home/\u003cusername\u003e/.ssh/_testing_key_pair\n\nEnter the cipher (e.g., ed25519, rsa) [default: ed25519]:\nEnter the key name [default: id_ed25519]:\nEnter a comment for the key [default: username@hostname]:\n\nGenerating new key pair...\n\nGenerating public/private ed25519 key pair.\n...\n\nGenerated new key pair in /home/\u003cusername\u003e/.ssh/_testing_key_pair\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgarciacat%2Fssh-key-manager-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidgarciacat%2Fssh-key-manager-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgarciacat%2Fssh-key-manager-cli/lists"}