{"id":23822461,"url":"https://github.com/petermcd/ssh-login-attempts-logger","last_synced_at":"2026-06-26T09:31:54.460Z","repository":{"id":114846212,"uuid":"168062267","full_name":"petermcd/SSH-Login-Attempts-Logger","owner":"petermcd","description":"Simple script to log login attempts to AWS","archived":false,"fork":false,"pushed_at":"2020-10-26T20:52:35.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-22T05:57:39.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petermcd.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-29T00:42:07.000Z","updated_at":"2020-12-30T19:21:44.000Z","dependencies_parsed_at":"2025-11-12T09:01:58.393Z","dependency_job_id":null,"html_url":"https://github.com/petermcd/SSH-Login-Attempts-Logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petermcd/SSH-Login-Attempts-Logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermcd%2FSSH-Login-Attempts-Logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermcd%2FSSH-Login-Attempts-Logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermcd%2FSSH-Login-Attempts-Logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermcd%2FSSH-Login-Attempts-Logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petermcd","download_url":"https://codeload.github.com/petermcd/SSH-Login-Attempts-Logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petermcd%2FSSH-Login-Attempts-Logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34811915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":[],"created_at":"2025-01-02T09:19:24.565Z","updated_at":"2026-06-26T09:31:54.455Z","avatar_url":"https://github.com/petermcd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Login Attempts Logger\n\nA simple script used to log login attempts generated from the \n[SSH PAM Login Logger](https://github.com/PeterMcD/ssh-pam-login-logger) script.\n\nThe script writes to an AWS API, reading credential and URL details from config.py (currently not checked in).\n\n```\n# Unique URL for the AWS API.\nURL = \"\"\n\n# AWS API key.\nAPI_Key = \"\"\n\n# Path and filename for the database.\nDatabasePath = \"/var/log/login-attempts.db\"\n\n```\n\nFor python to have the ability to read the database /var/log requires write access for guest.\nIf you are uncomfortable giving such access on this folder the database will need to be moved.\nRemember to update the pam module.\n\n## Installation\n\n```python\ncd ~\ngit clone https://github.com/PeterMcD/SSH-Login-Attempts-Logger.git\ncd SSH-Login-Attempts-Logger\nnano config.py\n```\n\nAdd the following contents for AWS. You will need to create a dynamoDB instance. lambda instance and lastly an API. A tutorial for this will come later.\n\n```python\n# Unique URL for the AWS API.\nURL = \"\"\n\n# AWS API key.\nAPI_Key = \"\"\n\n# Path and filename for the database.\nDatabasePath = \"/var/log/login-attempts.db\"\n```\n\nrun\n\n```python\nsudo crontab -e\n```\n\nand add the following to the  (remembering to change the path to match the user)\n\n```python\n*/5 * * * * python3 /home/pi/ssh-login-attempts-logger/src/LoginExtractor.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermcd%2Fssh-login-attempts-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermcd%2Fssh-login-attempts-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermcd%2Fssh-login-attempts-logger/lists"}