{"id":31474612,"url":"https://github.com/jsfraz/geopot","last_synced_at":"2026-05-09T09:19:31.836Z","repository":{"id":223168910,"uuid":"758194135","full_name":"jsfraz/geopot","owner":"jsfraz","description":"Monitoring SSH login attempts and geolocating remote hosts who failed to login and gathering used credentials.","archived":false,"fork":false,"pushed_at":"2025-09-24T23:26:22.000Z","size":2729,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T01:09:53.154Z","etag":null,"topics":["geolocation","globegl","golang","ip-address-geolocation","postgres","redis","ssh","ssh-login","ssh-logs","ssh-monitoring","timescaledb","unauthorized-access","valkey","vue3"],"latest_commit_sha":null,"homepage":"https://geopot.josefraz.cz/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsfraz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-15T20:06:34.000Z","updated_at":"2025-09-20T14:25:56.000Z","dependencies_parsed_at":"2025-01-11T04:48:26.826Z","dependency_job_id":"11538443-4afd-420f-b0f0-ce4985ace010","html_url":"https://github.com/jsfraz/geopot","commit_stats":null,"previous_names":["jsfraz/lucian","jsfraz/geopot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsfraz/geopot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsfraz%2Fgeopot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsfraz%2Fgeopot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsfraz%2Fgeopot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsfraz%2Fgeopot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsfraz","download_url":"https://codeload.github.com/jsfraz/geopot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsfraz%2Fgeopot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277926255,"owners_count":25900535,"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-10-01T02:00:09.286Z","response_time":88,"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":["geolocation","globegl","golang","ip-address-geolocation","postgres","redis","ssh","ssh-login","ssh-logs","ssh-monitoring","timescaledb","unauthorized-access","valkey","vue3"],"created_at":"2025-10-01T22:38:55.908Z","updated_at":"2026-04-15T22:32:06.067Z","avatar_url":"https://github.com/jsfraz.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geopot\n\nMonitoring SSH login attempts and geolocating remote hosts who failed to login and gathering used credentials.\n\n![Frontend screenshot](frontend.png)\n\n## How it works\n\nThe main idea is that you don't use default SSH port to connect to your remote server/VPS. This Docker Compose configuration maps fake server's port 22 to Docker host's public IP and stores unsuccesful login details in the database.\n\n\u003c!--\n| id    | ip_version | ip_address     | latitude  | longitude  | country_name | country_code | time_zone0 | zip_code | city_name | region_name | is_proxy | continent | continent_code | user | password  | timestamp                     |\n|:-----:|:----------:|:--------------:|:---------:|:----------:|:------------:|:------------:|:----------:|:--------:|:---------:|:-----------:|:--------:|:---------:|:--------------:|:----:|:---------:|:-----------------------------:|\n| 35086 | 4          | 180.101.88.252 | 31.311365 | 120.617691 | China        | CN           | +08:00     | 215003   | Suzhou    | Jiangsu     | false    | Asia      | AS             | root | nathalie  | 2024-02-28 14:31:56.356 +0100 |\n| 35085 | 4          | 180.101.88.252 | 31.311365 | 120.617691 | China        | CN           | +08:00     | 215003   | Suzhou    | Jiangsu     | false    | Asia      | AS             | root | dfvgbh    | 2024-02-28 14:31:56.043 +0100 |\n| 35084 | 4          | 180.101.88.252 | 31.311365 | 120.617691 | China        | CN           | +08:00     | 215003   | Suzhou    | Jiangsu     | false    | Asia      | AS             | root | jlo       | 2024-02-28 14:30:55.356 +0100 |\n| 35083 | 4          | 180.101.88.252 | 31.311365 | 120.617691 | China        | CN           | +08:00     | 215003   | Suzhou    | Jiangsu     | false    | Asia      | AS             | root | egk       | 2024-02-28 14:30:53.744 +0100 |\n| 35082 | 4          | 180.101.88.252 | 31.311365 | 120.617691 | China        | CN           | +08:00     | 215003   | Suzhou    | Jiangsu     | false    | Asia      | AS             | root | 1qaz2wsx@ | 2024-02-28 14:30:53.397 +0100 |\n--\u003e\n\n## Example usage\n\n### Example `docker-compose.yml` (see [`docker-compose.example.yml`](docker-compose.example.yml))\n\nDon't forget to generate `private_key.pem` first using following command:\n\n```bash\nopenssl genrsa -out private_key.pem 4096\n```\n\nAnd build with `sudo docker compose up -d`!\n\nFor deploying behind a reverse proxy see [nginx configuration](geopot.conf).\n\n### Example `.env` environmental variables  (see [`.env.example`](.env.example))\n\n| Variable          | Description           |\n|-------------------|-----------------------|\n| GIN_MODE          | Production/debug mode |\n| POSTGRES_USER     | PostgreSQL user       |\n| POSTGRES_PASSWORD | PostgreSQL password   |\n| POSTGRES_SERVER   | PostgreSQL server     |\n| POSTGRES_PORT     | PostgreSQL port       |\n| POSTGRES_DB       | PostgreSQL database   |\n| VALKEY_PASSWORD   | Valkey password       |\n| VALKEY_SERVER     | Valkey server         |\n| VALKEY_PORT       | Valkey port           |\n\n### TODO Example nginx configuration\n\n## Development\n\n### Local build\n\n```bash\nsudo docker compose -f docker-compose.dev.yml --env-file .env.dev up -d --build\n```\n\n### Testing `localhost:2222`\n\n```bash\n./test.sh number_of_attempts\n```\n\n### Swagger UI\n\nSwagger UI is available at `http://localhost:8080/swagger` after starting development mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsfraz%2Fgeopot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsfraz%2Fgeopot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsfraz%2Fgeopot/lists"}