{"id":20788774,"url":"https://github.com/mgla96/ssh-watcher","last_synced_at":"2025-08-19T00:11:29.330Z","repository":{"id":212883514,"uuid":"732441042","full_name":"Mgla96/ssh-watcher","owner":"Mgla96","description":"Monitor SSH logs and publish notifications to Slack","archived":false,"fork":false,"pushed_at":"2024-09-08T20:30:01.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T14:26:14.020Z","etag":null,"topics":["observability","security-audit","ssh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mgla96.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-12-16T17:23:44.000Z","updated_at":"2024-09-08T20:30:04.000Z","dependencies_parsed_at":"2024-01-08T06:34:41.869Z","dependency_job_id":"dec534ee-5380-41fd-bc7a-6a6863488ced","html_url":"https://github.com/Mgla96/ssh-watcher","commit_stats":null,"previous_names":["mgla96/ssh-watcher"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Mgla96/ssh-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fssh-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fssh-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fssh-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fssh-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mgla96","download_url":"https://codeload.github.com/Mgla96/ssh-watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgla96%2Fssh-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271078587,"owners_count":24695473,"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-08-18T02:00:08.743Z","response_time":89,"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":["observability","security-audit","ssh"],"created_at":"2024-11-17T15:17:00.222Z","updated_at":"2025-08-19T00:11:28.714Z","avatar_url":"https://github.com/Mgla96.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-watcher\n\n[![Run Tests](https://github.com/Mgla96/ssh-watcher/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/Mgla96/ssh-watcher/actions/workflows/main.yml)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Mgla96/ssh-watcher)](https://goreportcard.com/report/github.com/Mgla96/ssh-watcher)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/mgla96/ssh-watcher?sort=semver)\n\n**SSH Watcher** monitors SSH logs and sends alerts to Slack for quick incident response. It is open for extension to send alerts to other notification services beyond Slack.\n\nThis project is still a work in progress.\n\n## Installation\n\n### Download Binary\n\nCurrently, `ssh-watcher` supports only the `AMD64` architecture, although binaries for other architectures can be built in the future. The binary to run ssh-watcher can be found under the `Assets` section of a release. To programmatically download the binary, follow the instructions below:\n\nDownloading latest version of ssh-watcher. To download the latest version with the provided command, you need `curl` and `jq` installed on your system.\n\n```bash\ncurl -L $(curl -s https://api.github.com/repos/Mgla96/ssh-watcher/releases/latest | \\\njq -r '.assets[] | select(.name == \"ssh-watcher-linux-amd64\") | .browser_download_url') \\\n-o ssh-watcher-linux \u0026\u0026 \\\nchmod +x ssh-watcher-linux \u0026\u0026 \\\nsudo mv ssh-watcher-linux /usr/local/bin/ssh-watcher\n```\n\nAlternatively, you can install a specific release with the following command and replacing `v0.1.0` with the version of\n`ssh-watcher` you would like to install.\n\n```bash\ncurl -L -o ssh-watcher-linux https://github.com/Mgla96/ssh-watcher/releases/download/v0.1.0/ssh-watcher-linux-amd64 \u0026\u0026 \\\nchmod +x ssh-watcher-linux \u0026\u0026 \\\nsudo mv ssh-watcher-linux /usr/local/bin/ssh-watcher\n```\n\n### Prepare the Systemd Service File\n\n1. Copy the `ssh-watcher.service` file and populate the environment variables. Save this file in `/etc/systemd/system/`.\n\n2. Update the `ExecStart` field in `ssh-watcher.service` file to point to the location of the ssh-watcher binary.\n\n### Start the Service\n\n1. **Reload systemd**: to make systemd aware of the new service file.\n\n    ```bash\n    sudo systemctl daemon-reload\n    ```\n\n2. **Enable the Service**: to ensure `ssh-watcher` starts automatically at boot.\n\n    ```bash\n    sudo systemctl enable ssh-watcher.service\n    ```\n\n3. **Start the Service**: Start service immediately without rebooting.\n\n    ```bash\n    sudo systemctl start ssh-watcher.service\n    ```\n\n4. **Check the Service Status**: Verify that the service is active and running.\n\n    ```bash\n    sudo systemctl status ssh-watcher.service\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgla96%2Fssh-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgla96%2Fssh-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgla96%2Fssh-watcher/lists"}