{"id":23165944,"url":"https://github.com/ndejong/ssh-knownhost","last_synced_at":"2025-04-04T21:28:05.156Z","repository":{"id":143026080,"uuid":"124641781","full_name":"ndejong/ssh-knownhost","owner":"ndejong","description":"Get known_hosts based on their ssh-fingerprints - preventing man-in-the middle situations","archived":false,"fork":false,"pushed_at":"2018-07-12T09:25:47.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T06:14:12.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndejong.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":"2018-03-10T09:39:15.000Z","updated_at":"2022-03-28T07:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a076039e-fc92-4504-97ec-33f8925bbba5","html_url":"https://github.com/ndejong/ssh-knownhost","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fssh-knownhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fssh-knownhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fssh-knownhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fssh-knownhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndejong","download_url":"https://codeload.github.com/ndejong/ssh-knownhost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247251419,"owners_count":20908502,"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":[],"created_at":"2024-12-18T01:30:42.703Z","updated_at":"2025-04-04T21:28:05.136Z","avatar_url":"https://github.com/ndejong.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-knownhost\n\nTool that combines `ssh-keyscan` with `ssh-keygen` to echo to stdout the required\nstring for your .ssh/known_hosts file if the fingerprint of the remote ssh-server\nmatches the provided fingerprint.\n\nThis allows you to easily add fingerprint verified entries to the `.ssh/known_hosts` \nfile without the run-around.\n\n## Examples\n\nCheck the remote ssh-server has the provided SHA256 fingerprint and echo the \nknown_hosts entry to stdout\n```\n$ ssh-knownhost git-codecommit.us-east-2.amazonaws.com 3lBlW2g5xn/NA2Ck6dyeJIrQOWvn7n8UEs56fG6ZIzQ\n|1|rc1EFpa3dGvQocfQVp5n77zvlFY=|ca6xmx4sxubSrqX9eqtcn/Dj9hg= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCNbmnXfe621xtVMkrwOqf6QNIlnOKkQ01KoM6gKC4nv5T08hbGcGp6iYplGLKMLlki+auO1J3JTA3qAKDobZR1wDqtW9LC2k46GHV4YigUpd6D+YdranJqbxpGOuNd6c1EP50vQnlW9MxZYExyrZKT0UfOJAydQLoWPuSioyHk3zAltSIrCxczP3jxAhuoq++eUrdC5uF6UMNJC10eBA9XglAe2oRLzApoStyCAiKVnoBndU2NpJWqNw0K5qfEUx2vyQFfHNRAwNNRDFtkdE9ho255YECTO07Zg37QCZ+hV5VAoFRu5CHSXqVZc5YN1YXkZ8SVHyBX7krO80QaaDor\n```\n\nCheck the remote ssh-server has the provided MD5 fingerprint and echo to stdout\n```\n$ ssh-knownhost git-codecommit.us-east-2.amazonaws.com a9:6d:03:ed:08:42:21:be:06:e1:e0:2a:d1:75:31:5e\n|1|rc1EFpa3dGvQocfQVp5n77zvlFY=|ca6xmx4sxubSrqX9eqtcn/Dj9hg= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCNbmnXfe621xtVMkrwOqf6QNIlnOKkQ01KoM6gKC4nv5T08hbGcGp6iYplGLKMLlki+auO1J3JTA3qAKDobZR1wDqtW9LC2k46GHV4YigUpd6D+YdranJqbxpGOuNd6c1EP50vQnlW9MxZYExyrZKT0UfOJAydQLoWPuSioyHk3zAltSIrCxczP3jxAhuoq++eUrdC5uF6UMNJC10eBA9XglAe2oRLzApoStyCAiKVnoBndU2NpJWqNw0K5qfEUx2vyQFfHNRAwNNRDFtkdE9ho255YECTO07Zg37QCZ+hV5VAoFRu5CHSXqVZc5YN1YXkZ8SVHyBX7krO80QaaDor\n```\n\nCheck the remote ssh-server has the provided SHA256 fingerprint and append the \noutput to ~/.ssh/known_hosts\n```\n$ ssh-knownhost git-codecommit.us-east-2.amazonaws.com 3lBlW2g5xn/NA2Ck6dyeJIrQOWvn7n8UEs56fG6ZIzQ \u003e\u003e ~/.ssh/known_hosts\n```\n\nDeliberatly using a bad fingerprint value\n```\n$ ssh-knownhost git-codecommit.us-east-2.amazonaws.com bad-fingerprint-value\nNo matching fingerprint\n```\n\n## Some AWS CodeCommit known SSH server fingerprints\n* https://docs.aws.amazon.com/codecommit/latest/userguide/regions.html#regions-fingerprints\n\n## Authors\nThis code is managed by [Verb Networks](https://github.com/verbnetworks).\n\n## License\nApache 2 Licensed. See LICENSE file for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndejong%2Fssh-knownhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndejong%2Fssh-knownhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndejong%2Fssh-knownhost/lists"}