{ "info": { "author": "Frederik Petersen", "author_email": "sshaws@the-imperfection.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development", "Topic :: System :: Networking" ], "description": "[![PyPi Version](https://img.shields.io/pypi/v/sshaws.svg)](https://pypi.python.org/pypi/sshaws)\n[![PyPi License](https://img.shields.io/pypi/l/sshaws.svg)](https://pypi.python.org/pypi/sshaws)\n[![PyPi Versions](https://img.shields.io/pypi/pyversions/sshaws.svg)](https://pypi.python.org/pypi/sshaws)\n[![PyPi Wheel](https://img.shields.io/pypi/wheel/sshaws.svg)](https://pypi.python.org/pypi/sshaws)\n\n# sshaws\n\nSimply connect to your 'EC2 Instance Connect'-capable AWS EC2 servers using one command.\nIf you use 'EC2 Instance Connect' as described [in this article](https://aws.amazon.com/blogs/compute/new-using-amazon-ec2-instance-connect-for-ssh-access-to-your-ec2-instances/) you already noticed that it can become a hassle to connect to instances, especially if you frequently connect to different instances. The `sshaws` command allows takes care of gathering the necessary information, calling ec2-instance-connect (to register your public key) and, finally, ssh to the instance.\n\nWith sshaws, in the best case, connecting to your instances will look like this:\n\n![](sshaws.gif)\n\n## Requirements\n\n- python3 and pip\n- configured aws credentials and rights to connect to the instance\n- instance needs to support ec2-instance-connect (AWS AMIs support that + you can install it on your servers)\n- public (or private) IP needs to be reachable\n\n## Installation\n\n```bash\npip install sshaws\n```\n\nYou might need to use pip3 if you are not in a virtualenv. You might want to install the package in user space (if you don't have sudo rights). E.g.:\n\n```bash\npip3 install --user sshaws\n```\n\n## Usage\n\n```bash\nsshaws \n```\n\n`` should be replaced by something like: `i-074126021e7b3e7f5`. The Instance ID can be found in the AWS Console (EC2 view, ECS task description, etc.)\n\nBy default it will use the default region, your ssh key at ~/.ssh/id_rsa (private) and ~/.ssh/id_rsa.pub (public) and ec2-user as the username used to connect.\nSee the help output to see how to change these options:\n\n```bash\nsshaws --help\n```\n\n## More Examples\n\nTo look for the instance in two different regions use:\n\n```bash\nsshaws --regions eu-central-1 us-east-1\n```\n\n## Config\n\nTo avoid having to set command line arguments again and again you can write a config file to `~/.sshaws.conf`.\n\nThis is an example:\n\n```json\n{\n \"os_user\": \"kevin\",\n \"use_private_id\": true,\n \"regions\": [\"eu-central-1\", \"us-east-1\"],\n \"key_file_path_private\": \"/home/example/.ssh/somekey\",\n \"key_file_path_public\": \"/home/example/.ssh/somekey.pub\",\n \"forward_agent\": true\n}\n```\n\nPrivate and public key might be combined in the same file in some cases. Just specify both options with the same value.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FrederikP/sshaws", "keywords": "aws connect ssh cli instance", "license": "", "maintainer": "", "maintainer_email": "", "name": "sshaws", "package_url": "https://pypi.org/project/sshaws/", "platform": "", "project_url": "https://pypi.org/project/sshaws/", "project_urls": { "Bug Reports": "https://github.com/FrederikP/sshaws/issues", "Homepage": "https://github.com/FrederikP/sshaws", "Source": "https://github.com/FrederikP/sshaws" }, "release_url": "https://pypi.org/project/sshaws/0.3.2/", "requires_dist": [ "boto3" ], "requires_python": ">=3.0, <4", "summary": "Simply connect to your \"EC2 Instance Connect\"-capable AWS EC2 servers using one command", "version": "0.3.2" }, "last_serial": 5890275, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "639acc21da0d4c92561aa3f7daff0497", "sha256": "28536cde926f9f9f4a6fc50ea57c45dd0f23a6a085882829885416f98c0d6d8c" }, "downloads": -1, "filename": "sshaws-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "639acc21da0d4c92561aa3f7daff0497", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4115, "upload_time": "2019-09-24T15:29:39", "url": "https://files.pythonhosted.org/packages/b5/67/9380f1b4024ed4d51e1b7c2bda72f54dd5528dce01f0533b2485f1d2e1aa/sshaws-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c30807ede3e6e5c8e0ffaa0aeccb666", "sha256": "c72675627cfd80bcc6122a2a05e14cd39afde8fa2341d34cf7d32678e3bc6f0e" }, "downloads": -1, "filename": "sshaws-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2c30807ede3e6e5c8e0ffaa0aeccb666", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 3335, "upload_time": "2019-09-24T15:29:41", "url": "https://files.pythonhosted.org/packages/cb/2c/2fd7e00e72e7be5e9d057b484ba5ac5fb89ce75cff5b6178e491bf85b112/sshaws-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4fa81efb590993857819808807dad2c2", "sha256": "4c1963c0225d23ea841709ad1414e8f64e720ad9de45c28033a5b1981f42f45f" }, "downloads": -1, "filename": "sshaws-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4fa81efb590993857819808807dad2c2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4676, "upload_time": "2019-09-24T16:17:04", "url": "https://files.pythonhosted.org/packages/57/61/4ae0587f8baac4b916d3f54d00d7f592da2027e2273c59fc67f3049ab7f2/sshaws-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cf8488f7c8c4506b3d2aeca101a656d", "sha256": "e58f37023786bfc327f012b608872f58c371801140160a1e1049d8d998890262" }, "downloads": -1, "filename": "sshaws-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7cf8488f7c8c4506b3d2aeca101a656d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 3882, "upload_time": "2019-09-24T16:17:05", "url": "https://files.pythonhosted.org/packages/41/ab/6410b6c0389205ab4696b39100123ea2fc329fda64dac336f7d07626f1dc/sshaws-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "2597792f7a62ebb28ff22cb65b00d730", "sha256": "fc664cda5cbcf7d9ba7df4efb9fae35244c8ce5d9d1ee134e538394f457a3799" }, "downloads": -1, "filename": "sshaws-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2597792f7a62ebb28ff22cb65b00d730", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4872, "upload_time": "2019-09-25T16:26:48", "url": "https://files.pythonhosted.org/packages/b3/0f/4b2be6d7fd11a8b43549c58a501138398883ee703b8e0a0a185ee9ac8993/sshaws-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e974a9f1da99ed7f152ddeb3c84dc71d", "sha256": "434ffb6feffa2b937803345e76bcebf6520109d1bd52f2531bd3b520a3500d29" }, "downloads": -1, "filename": "sshaws-0.3.0.tar.gz", "has_sig": false, "md5_digest": "e974a9f1da99ed7f152ddeb3c84dc71d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 4078, "upload_time": "2019-09-25T16:26:50", "url": "https://files.pythonhosted.org/packages/15/c0/528b59e70a9c78a089178d8e3a3108bedcc5f3d1b37e60d962a970855b06/sshaws-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4629044231a55cf131c2ec569569ad64", "sha256": "d85ac86ecc49c730faff0a45bbf8e7c3e41f226b68ee72aa22851f90ac906141" }, "downloads": -1, "filename": "sshaws-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4629044231a55cf131c2ec569569ad64", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4869, "upload_time": "2019-09-25T16:31:38", "url": "https://files.pythonhosted.org/packages/5d/5c/5cee8da451137c0ab2f96d91ba29a2505454c2d12a68f9d5620e09cea4ba/sshaws-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af739110495bed488127b07b5c3232b0", "sha256": "8bd5642258fba1d173760ef2510c185d8f77fe5dc5e91987a9e33f849be42167" }, "downloads": -1, "filename": "sshaws-0.3.1.tar.gz", "has_sig": false, "md5_digest": "af739110495bed488127b07b5c3232b0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 4081, "upload_time": "2019-09-25T16:31:40", "url": "https://files.pythonhosted.org/packages/79/47/6c0b1c1ea5511b18edf3491a1a795ed703a31f8f276825777e24c8fc3f1f/sshaws-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "1f7052e6c46d8c007efcc07be8a9dfa1", "sha256": "a8ac4b25c70424357a78593665f99cf09d7cb6b0d7e3c4beba32fe06ec02bab0" }, "downloads": -1, "filename": "sshaws-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1f7052e6c46d8c007efcc07be8a9dfa1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4865, "upload_time": "2019-09-26T12:03:45", "url": "https://files.pythonhosted.org/packages/11/b6/ae8ba402825fa1d1bcb1d50be981cb86a3f3d71ba3121b8aa43957e695ab/sshaws-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "13af2edd59b9ea71f730c29ae8611b93", "sha256": "a0b9598e2b763dccf8635186b93516c985677e74abcecfbb48d28130ee297d58" }, "downloads": -1, "filename": "sshaws-0.3.2.tar.gz", "has_sig": false, "md5_digest": "13af2edd59b9ea71f730c29ae8611b93", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 4071, "upload_time": "2019-09-26T12:03:47", "url": "https://files.pythonhosted.org/packages/1f/57/25814076468e3ae3cedf4369bb1e36d499ed81740949fe825a33397b71df/sshaws-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f7052e6c46d8c007efcc07be8a9dfa1", "sha256": "a8ac4b25c70424357a78593665f99cf09d7cb6b0d7e3c4beba32fe06ec02bab0" }, "downloads": -1, "filename": "sshaws-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1f7052e6c46d8c007efcc07be8a9dfa1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0, <4", "size": 4865, "upload_time": "2019-09-26T12:03:45", "url": "https://files.pythonhosted.org/packages/11/b6/ae8ba402825fa1d1bcb1d50be981cb86a3f3d71ba3121b8aa43957e695ab/sshaws-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "13af2edd59b9ea71f730c29ae8611b93", "sha256": "a0b9598e2b763dccf8635186b93516c985677e74abcecfbb48d28130ee297d58" }, "downloads": -1, "filename": "sshaws-0.3.2.tar.gz", "has_sig": false, "md5_digest": "13af2edd59b9ea71f730c29ae8611b93", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0, <4", "size": 4071, "upload_time": "2019-09-26T12:03:47", "url": "https://files.pythonhosted.org/packages/1f/57/25814076468e3ae3cedf4369bb1e36d499ed81740949fe825a33397b71df/sshaws-0.3.2.tar.gz" } ] }