{"id":15113682,"url":"https://github.com/rolandfarkascom/linux-slack-alert","last_synced_at":"2026-01-30T18:33:26.471Z","repository":{"id":257474146,"uuid":"858378817","full_name":"rolandfarkasCOM/linux-slack-alert","owner":"rolandfarkasCOM","description":"A simple slack notification for SSH logins with IP API ability to look up country, city and other location specific information.","archived":false,"fork":false,"pushed_at":"2024-09-16T20:58:55.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T08:08:49.740Z","etag":null,"topics":["alert","bash","bash-script","centos","curl","debian","linux","notification-service","notification-services","notifications","redhat","shell","shell-script","shell-scripts","slack","slack-bot","slackbot","ssh","ubuntu"],"latest_commit_sha":null,"homepage":"https://www.rolandfarkas.com/setting-up-linux-ssh-login-alerts-with-slack-notifications-a-step-by-step-guide/","language":"Shell","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/rolandfarkasCOM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"rolandfarkas"}},"created_at":"2024-09-16T19:42:15.000Z","updated_at":"2024-11-04T21:27:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3045a993-1fbe-4d01-a3e0-aeed24e92c8d","html_url":"https://github.com/rolandfarkasCOM/linux-slack-alert","commit_stats":null,"previous_names":["rolandfarkascom/linux-slack-alert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rolandfarkasCOM/linux-slack-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandfarkasCOM%2Flinux-slack-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandfarkasCOM%2Flinux-slack-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandfarkasCOM%2Flinux-slack-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandfarkasCOM%2Flinux-slack-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolandfarkasCOM","download_url":"https://codeload.github.com/rolandfarkasCOM/linux-slack-alert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandfarkasCOM%2Flinux-slack-alert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259378049,"owners_count":22848478,"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":["alert","bash","bash-script","centos","curl","debian","linux","notification-service","notification-services","notifications","redhat","shell","shell-script","shell-scripts","slack","slack-bot","slackbot","ssh","ubuntu"],"created_at":"2024-09-26T01:22:09.802Z","updated_at":"2026-01-30T18:33:26.427Z","avatar_url":"https://github.com/rolandfarkasCOM.png","language":"Shell","funding_links":["https://ko-fi.com/rolandfarkas"],"categories":[],"sub_categories":[],"readme":"# Linux Slack Alert\nA simple slack notification for SSH logins\n\nThe notify.sh file includes a simple notification for slack which can be customised with a special name (eg.: if you have host names and IP's) and a group name in case you want to group your servers.\n\nThe advanced.sh file is a copy of the notify.sh but it includes IP API location details eg: Country, City, Proxy info, Latitude, Longtitude and so on. (More info on: https://freeipapi.com/)\n\n\nCreate the scripts folder\n```bash\nmkdir /etc/ssh/scripts/\n```\n\nAdd the notify.sh file to the scripts folder\n```bash\ntouch /etc/ssh/scripts/notify.sh\n```\n\nEdit the notify.sh file and copy either the notify.sh contents or the advanced.sh contents and update the required parameters\n```bash\nnano /etc/ssh/scripts/notify.sh\n```\n\nSet the required permissions for the notify.sh file\n```bash\nsudo chmod +x /etc/ssh/scripts/notify.sh\n```\n\nAdd the notify.sh file to the sshd service\n```bash\nsudo echo \"session optional pam_exec.so seteuid /etc/ssh/scripts/notify.sh\" \u003e\u003e /etc/pam.d/sshd\n```\n\n** Only required for advanced script so you can parse the IPAPI json response\n```bash\nsudo apt-get install jq\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandfarkascom%2Flinux-slack-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolandfarkascom%2Flinux-slack-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandfarkascom%2Flinux-slack-alert/lists"}