{"id":15517317,"url":"https://github.com/skx/knownfs","last_synced_at":"2025-04-23T04:15:52.948Z","repository":{"id":150430177,"uuid":"130094110","full_name":"skx/knownfs","owner":"skx","description":"A FUSE-based filesystem that exports ~/.ssh/known_hosts","archived":false,"fork":false,"pushed_at":"2024-08-13T07:35:03.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T22:02:57.141Z","etag":null,"topics":["filesystem","fuse","golang","misc","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skx.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-04-18T16:49:07.000Z","updated_at":"2024-08-13T07:35:06.000Z","dependencies_parsed_at":"2024-06-21T19:27:08.175Z","dependency_job_id":null,"html_url":"https://github.com/skx/knownfs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fknownfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fknownfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fknownfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fknownfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skx","download_url":"https://codeload.github.com/skx/knownfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249319594,"owners_count":21250578,"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":["filesystem","fuse","golang","misc","ssh"],"created_at":"2024-10-02T10:12:29.768Z","updated_at":"2025-04-17T06:31:09.188Z","avatar_url":"https://github.com/skx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/skx/knownfs)](https://goreportcard.com/report/github.com/skx/knownfs)\n[![license](https://img.shields.io/github/license/skx/knownfs.svg)](https://github.com/skx/knownfs/blob/master/LICENSE)\n[![Release](https://img.shields.io/github/release/skx/knownfs.svg)](https://github.com/skx/knownfs/releases/latest)\n\n\n\nTable of Contents\n===============\n\n* [KnownFS](#knownfs)\n* [Installation](#installation)\n  * [Source Installation go \u0026lt;=  1.11](#source-installation-go---111)\n  * [Source installation go  \u0026gt;= 1.12](#source-installation-go---112)\n* [Usage:](#usage)\n* [Options](#options)\n* [Github Setup](#github-setup)\n\n\n# KnownFS\n\nA simple FUSE-based filesystem which exports the contents of `~/.ssh/known_hosts`.\n\nFor every hostname listed in your known_hosts file this filesystem will create a directory, and that directory will contain a single file holding the servers' SSH-fingerprint.\n\n\n# Installation\n\nThere are two ways to install this project from source, which depend on the version of the [go](https://golang.org/) version you're using.\n\nIf you just need the binaries you can find them upon the [project release page](https://github.com/skx/knownfs/releases).\n\n\n## Source Installation go \u003c=  1.11\n\nIf you're using `go` before 1.11 then the following command should fetch/update the project and install it upon your system:\n\n     $ go get -u github.com/skx/knownfs\n\n## Source installation go  \u003e= 1.12\n\nIf you're using a more recent version of `go` (which is _highly_ recommended), you need to clone to a directory which is not present upon your `GOPATH`:\n\n    git clone https://github.com/skx/knownfs\n    cd knownfs\n    go install\n\n\n# Usage:\n\nMake a directory for the filesystem, and mount it like so:\n\n     $ mkdir ~/knownfs/\n     $ knownfs ~/knownfs/\n\nIn another window:\n\n     $ ls -1 ~/knownfs/\n\nYou should see a single subdirectory for each hostname listed in your `~/.ssh/known_hosts` file, and inside the directory you'll find a file named `fingerprint` with the hosts' fingerprint.\n\nOnce you're done you will need to unmount the mount-point.  If you have `fusermount` installed you can do so like this:\n\n      $ fusermount -u ~/knownfs/\n\nIf not you'll need root permissions to unmount the end-point:\n\n      $ sudo umount ~/knownfs/\n\n\n# Options\n\nBy default you'll see entries for each host found, whether those entries are hostnames or IP addresses.  For example on my own system I see this:\n\n      frodo ~/knownfs $ ls | head -n 5\n      10.0.0.10\n      10.10.10.100\n      10.10.10.20\n      10.10.10.97\n      10.10.10.98\n\nI prefer to only view _real_ hosts, so I exclude IPv4/IPv6-based entries like so:\n\n      $ knownfs -hosts-only\n\nThat gives me just hostnames:\n\n      $ ls | head -5\n      blogspam.blogspam.net\n      blogspam.net\n      blog.steve.fi\n      builder.steve.org.uk\n      builder.vpn\n\nYou can also specify the path to an alternative `known_hosts` file, with `-config /path/to/file`.\n\n\n# Github Setup\n\nThis repository is configured to run tests upon every commit, and when\npull-requests are created/updated.  The testing is carried out via\n[.github/run-tests.sh](.github/run-tests.sh) which is used by the\n[github-action-tester](https://github.com/skx/github-action-tester) action.\n\nReleases are automated in a similar fashion via [.github/build](.github/build),\nand the [github-action-publish-binaries](https://github.com/skx/github-action-publish-binaries) action.\n\n\nSteve\n--\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fknownfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskx%2Fknownfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fknownfs/lists"}