{"id":16546938,"url":"https://github.com/sjednac/aws-ssh-sync","last_synced_at":"2026-04-27T22:31:51.914Z","repository":{"id":52301239,"uuid":"205685881","full_name":"sjednac/aws-ssh-sync","owner":"sjednac","description":"☁️Generate SSH config files, based on current AWS EC2 state.","archived":false,"fork":false,"pushed_at":"2022-12-08T06:11:24.000Z","size":82,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T15:44:46.778Z","etag":null,"topics":["aws","aws-ec2","ssh","ssh-config","synchronization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjednac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-01T14:13:15.000Z","updated_at":"2025-03-22T11:01:15.000Z","dependencies_parsed_at":"2023-01-24T18:16:54.101Z","dependency_job_id":null,"html_url":"https://github.com/sjednac/aws-ssh-sync","commit_stats":null,"previous_names":["sbilinski/aws-ssh-sync"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sjednac/aws-ssh-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjednac%2Faws-ssh-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjednac%2Faws-ssh-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjednac%2Faws-ssh-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjednac%2Faws-ssh-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjednac","download_url":"https://codeload.github.com/sjednac/aws-ssh-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjednac%2Faws-ssh-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["aws","aws-ec2","ssh","ssh-config","synchronization"],"created_at":"2024-10-11T19:13:05.425Z","updated_at":"2026-04-27T22:31:51.891Z","avatar_url":"https://github.com/sjednac.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH config synchronisation for AWS\n\n[![Build Status](https://travis-ci.org/sbilinski/aws-ssh-sync.svg?branch=master)](https://travis-ci.org/sbilinski/aws-ssh-sync) \n[![PyPI version](https://badge.fury.io/py/aws-ssh-sync.svg)](https://badge.fury.io/py/aws-ssh-sync)\n\nGenerate `ssh_config` files, based on current [Amazon EC2](https://aws.amazon.com/ec2/) state.\n\n## Features\n\n* Connect to one or more regions at once.\n* Filter EC2 instances by name. Useful for including relevant nodes only or for creating separate config sets for the same environment (e.g. use a different `User` for different nodes).\n* Identify hosts using tags or instance IDs:\n    * Index duplicates (e.g. in autoscaling groups) using instance launch time.\n    * Include a global name prefix and/or a region ID to identify the connection in a unique way.\n* Use public or private IPs.\n* Set various SSH params:\n    * Skip strict host checking, if needed. Can be useful when working with (internal) autoscaling groups.\n    * Provide a server alive interval to keep the connection from timing out.\n    * Use custom identity files.\n    * Setup a proxy command for utilizing jump hosts.\n    * ...\n* Write to `stdout` or a [master file with config-key substitution](#file-output). Useful for working with tools, that don't support the `Include` directive.\n\n## Installation\n\nYou can install the latest package using `pip`:\n\n```bash\npip install aws-ssh-sync\n```\n\n## Usage\n\nTo get a full list of options:\n```bash\naws_ssh_sync --help\n```\n\n### Preview\n\nThe easiest way to get a **preview** of the current config in AWS is to print the output directly to `stdout`:\n\n```bash\naws_ssh_sync --profile \u003cprofile\u003e --region \u003cregion\u003e\n```\n\n### Utilising the 'Include' directive\n\nIf you want to **isolate** the generated config, you can write it to a dedicated file, and `Include` it in the main config. The base use-case is as follows:\n\n```bash\naws_ssh_sync --profile \u003cprofile\u003e --region \u003cregion\u003e \u003e ~/.ssh/config.d/\u003csome_file\u003e\n```\n\nTo extend your `~/.ssh/config`, add the following line:\n\n```\nInclude config.d/*\n```\n\n### \u003ca name=\"file-output\"\u003e\u003c/a\u003eWorking with a single config file\n\nSplitting config into multiple, small files keeps things elegant and clean - you should probably stick to that, if you can. \n\nUnfortunatelly, some tools may still have trouble with the `Include` directive itself. If you want to use a single file (e.g. `~/.ssh/config`) for keeping all configuration, then you can specify the `--output-file` together with a `--config-key`:\n\n```bash\naws_ssh_sync --profile \u003cprofile\u003e --region \u003cregion\u003e --config-key \u003ckey\u003e --output-file \u003cpath\u003e\n``` \n\nBehaviour:\n\n* Configuration is written to the `--output-file` rather than `stdout`.\n* If the file doesn't exist, then it will be created.\n* If a section identified by `--config-key` exists, then it will be replaced. \n* If no `--config-key` was found, then a new section will be appended to the file.\n* **No backup file is created at the moment.**\n\n## References\n\n* [Origin, motivation and acknowledgements](http://mintbeans.com/aws-ssh-sync/) - blog post.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjednac%2Faws-ssh-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjednac%2Faws-ssh-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjednac%2Faws-ssh-sync/lists"}