{"id":21925571,"url":"https://github.com/valsaven/ssh-login-telegram-notifier","last_synced_at":"2026-04-13T20:04:10.272Z","repository":{"id":187957741,"uuid":"653089469","full_name":"valsaven/SSH-Login-Telegram-Notifier","owner":"valsaven","description":"Receive Telegram notifications upon SSH logins to your server","archived":false,"fork":false,"pushed_at":"2023-06-13T12:28:22.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T11:42:50.232Z","etag":null,"topics":["notifications","ssh","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/valsaven.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}},"created_at":"2023-06-13T11:39:59.000Z","updated_at":"2023-06-13T12:34:29.000Z","dependencies_parsed_at":"2023-08-12T23:46:16.214Z","dependency_job_id":null,"html_url":"https://github.com/valsaven/SSH-Login-Telegram-Notifier","commit_stats":null,"previous_names":["valsaven/ssh-login-telegram-notifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/valsaven/SSH-Login-Telegram-Notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valsaven%2FSSH-Login-Telegram-Notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valsaven%2FSSH-Login-Telegram-Notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valsaven%2FSSH-Login-Telegram-Notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valsaven%2FSSH-Login-Telegram-Notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valsaven","download_url":"https://codeload.github.com/valsaven/SSH-Login-Telegram-Notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valsaven%2FSSH-Login-Telegram-Notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["notifications","ssh","telegram","telegram-bot"],"created_at":"2024-11-28T21:19:15.152Z","updated_at":"2026-04-13T20:04:10.254Z","avatar_url":"https://github.com/valsaven.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Login Telegram Notifier\n\nThis script sends a Telegram notification whenever someone logs into your server via SSH.\n\n## Requirements\n\n- Bash\n- curl\n\n## Instructions\n\n1. **Create a Telegram bot**: You can do this via [BotFather](https://t.me/BotFather).\n2. **Create a Telegram channel**: This can be private or public, depending on your preference. This is where the alerts will be sent.\n3. **Get the bot updates**: Create a URI in the following format:\n\n    ```bash\n    https://api.telegram.org/bot*****:***-*****************/getUpdates\n    ```\n\n    and invoke it.\n4. **Add your bot to the channel**: This will allow the bot to send messages to the channel.\n5. **Get the channel ID**: You can do this by visiting `https://api.telegram.org/bot*****:***-*****************/getUpdates` again. The channel ID will be listed there.\n6. **Register at IPInfo**: You can do this at [ipinfo.io](https://ipinfo.io/). This will give you an API token.\n7. **Update the script**: Fill in the variables in the script with your Telegram bot token, channel ID, and IPInfo token.\n8. **Make the script executable**: You can do this with the following command:\n\n    ```bash\n    chmod +x ssh_notifier.sh\n    ```\n\n9. **Test the script**: Run the script and check that everything works correctly.\n10. **Update the SSHD PAM configuration**: Add the following line to the end of `/etc/pam.d/sshd`:\n\n    ```bash\n    session optional pam_exec.so type=open_session seteuid /full/path/to/ssh_notifier.sh\n    ```\n\n    This will run the script whenever someone logs into your server via SSH.\n\nNow, try connecting to your server via SSH. You should receive a notification in your Telegram channel. Enjoy your new notification system!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalsaven%2Fssh-login-telegram-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalsaven%2Fssh-login-telegram-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalsaven%2Fssh-login-telegram-notifier/lists"}