{"id":20015683,"url":"https://github.com/jen20/hostkeyparser","last_synced_at":"2025-09-07T06:07:16.958Z","repository":{"id":145122565,"uuid":"88372476","full_name":"jen20/hostkeyparser","owner":"jen20","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-15T20:29:07.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T12:14:04.260Z","etag":null,"topics":["cloudinit","golang","ssh"],"latest_commit_sha":null,"homepage":null,"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/jen20.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":"2017-04-15T20:28:54.000Z","updated_at":"2017-04-15T20:29:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"deac5deb-0fc8-461c-8b90-5c350c889297","html_url":"https://github.com/jen20/hostkeyparser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jen20/hostkeyparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jen20%2Fhostkeyparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jen20%2Fhostkeyparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jen20%2Fhostkeyparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jen20%2Fhostkeyparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jen20","download_url":"https://codeload.github.com/jen20/hostkeyparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jen20%2Fhostkeyparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274001615,"owners_count":25205293,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloudinit","golang","ssh"],"created_at":"2024-11-13T07:46:53.097Z","updated_at":"2025-09-07T06:07:16.903Z","avatar_url":"https://github.com/jen20.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudInit Host Key Parser\n\nThis library parses SSH Host Keys from the output of CloudInit as provided by (for example) the AWS `ec2 get-console-output` command, in order that they can be used to verify host keys for SSH connections. Comments are removed from keys, though no validation of the actual keys is performed.\n\nIt is important to note that not all AMIs set the console correctly at boot time so this method is not 100% reliable, though if the output is present the parsing should succeed.\n\n## Usage\n\n```\n// Use the AWS SDK for this\nconsoleOutput := GetConsoleOutput(\"i-12345\")\nif consoleOutput == \"\" {\n    // No console output to read\n}\n\nhostKeys, err := hostkeys.Parse(consoleOutput)\nif err != nil {\n    if err == hostkeys.ErrNoStartHostKeysBlock {\n        // No host keys in console output\n    }\n}\n\n// hostKeys is a []string with the keys in the same order as read from the console output.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjen20%2Fhostkeyparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjen20%2Fhostkeyparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjen20%2Fhostkeyparser/lists"}