{"id":27021350,"url":"https://github.com/oditynet/2fact-sshkey","last_synced_at":"2025-07-15T06:39:17.228Z","repository":{"id":252073491,"uuid":"623505472","full_name":"oditynet/2fact-sshkey","owner":"oditynet","description":"2fact pam module. Вставляешь флешку,монтируется папку,получает ключ, rules разблокирует экран.","archived":false,"fork":false,"pushed_at":"2024-08-07T12:33:53.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-07T15:13:02.909Z","etag":null,"topics":["2fa","2factor","ssh-key"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oditynet.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":"2023-04-04T14:01:24.000Z","updated_at":"2024-08-07T15:13:08.074Z","dependencies_parsed_at":"2024-08-07T15:24:35.577Z","dependency_job_id":null,"html_url":"https://github.com/oditynet/2fact-sshkey","commit_stats":null,"previous_names":["oditynet/2fact-sshkey"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oditynet%2F2fact-sshkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oditynet%2F2fact-sshkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oditynet%2F2fact-sshkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oditynet%2F2fact-sshkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oditynet","download_url":"https://codeload.github.com/oditynet/2fact-sshkey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247241763,"owners_count":20907067,"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":["2fa","2factor","ssh-key"],"created_at":"2025-04-04T19:50:07.192Z","updated_at":"2025-04-04T19:50:08.036Z","avatar_url":"https://github.com/oditynet.png","language":"C","readme":"This is a PAM module for 2fact auth of sshkey on USB\n\nEnter User\\password and enter USB with private key.\n\nYour are generate a key with ssh-keygen. Private key copy to USB flash with ext4 FS, public key copy to /root or etc. (edit a code)\n\n```sed\nsystemcctl start sshd (add :\nPubkeyAuthentication yes\nPubkeyAcceptedKeyTypes=+ssh-rsa)\n\ncp usb-mount@.service /etc/systemd/system/\ncp 35-auth.rules /etc/udev/rules.d/\ncp usb-mount.sh /usr/local/bin/\nchmod u+x /usr/local/bin/usb-mount.sh\nudevadm control --reload-rules\nsystemctl daemon-reload\nmake\ncp 2fact.so /usr/lib/security\n```\nadd to /etc/pam.d/system-auth \"auth\trequisite\t2fact.so\"\n\nTODO:\n - Do not used a sshd service\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foditynet%2F2fact-sshkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foditynet%2F2fact-sshkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foditynet%2F2fact-sshkey/lists"}