{"id":21501218,"url":"https://github.com/nousefreak/sawsh","last_synced_at":"2025-07-15T22:32:13.010Z","repository":{"id":57526388,"uuid":"93680780","full_name":"NoUseFreak/sawsh","owner":"NoUseFreak","description":"SSH wrapper for aws to make your life easier.","archived":false,"fork":false,"pushed_at":"2023-04-10T09:44:15.000Z","size":79,"stargazers_count":12,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T16:51:41.497Z","etag":null,"topics":["aws","aws-cli","aws-ec2","devops-tools","hacktoberfest","ssh","ssh-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Go","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/NoUseFreak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-07T21:21:27.000Z","updated_at":"2021-10-02T10:40:43.000Z","dependencies_parsed_at":"2024-06-20T16:36:56.471Z","dependency_job_id":"8dceded9-e4f4-4b5e-989c-93f89a0357d0","html_url":"https://github.com/NoUseFreak/sawsh","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fsawsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fsawsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fsawsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fsawsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoUseFreak","download_url":"https://codeload.github.com/NoUseFreak/sawsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226077515,"owners_count":17570163,"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":["aws","aws-cli","aws-ec2","devops-tools","hacktoberfest","ssh","ssh-wrapper"],"created_at":"2024-11-23T17:49:59.838Z","updated_at":"2024-11-23T17:50:00.671Z","avatar_url":"https://github.com/NoUseFreak.png","language":"Go","readme":"# sawsh\n[![Build status](https://img.shields.io/travis/NoUseFreak/sawsh/master?style=flat-square)](https://travis-ci.org/NoUseFreak/sawsh)\n[![Release](https://img.shields.io/github/v/release/NoUseFreak/sawsh?style=flat-square)](https://github.com/NoUseFreak/sawsh/releases)\n[![Report](https://goreportcard.com/badge/github.com/nousefreak/sawsh?style=flat-square)](https://goreportcard.com/report/github.com/nousefreak/sawsh)\n[![License](https://img.shields.io/github/license/NoUseFreak/sawsh?style=flat-square)](https://github.com/NoUseFreak/sawsh/blob/master/LICENSE)\n[![Coffee](https://img.shields.io/badge/☕️-Buy%20me%20a%20coffee-blue?style=flat-square\u0026color=blueviolet)](https://www.buymeacoffee.com/driesdepeuter)\n\nSSH wrapper for aws to make your life easier.\n\n## Features\n\n - Lookup AWS EC2 instances by name.\n - Lookup ip by `ip-xxx.xxx.xxx.xxx` format.\n - Transparant connect to ip\n\n## Usage\n\n```sh\n$ sawsh webserver\n```\n\nThis example will query AWS for a EC2 instance containing the name `webserver`. It will prompt you with a choise when\nmore than one result is found.\n\n```sh\n$ sawsh webserver\n+---+--------------------+-------------+-------------------------------+\n|   |        NAME        |      IP     |          LAUNCHTIME           |\n+---+--------------------+-------------+-------------------------------+\n| 0 | prod-webserver-1   | 10.1.1.10   | 2018-02-01 21:13:44 +0000 UTC |\n| 1 | prod-webserver-2   | 10.1.2.10   | 2018-03-15 18:57:02 +0000 UTC |\n| 2 | prod-webserver-3   | 10.1.3.10   | 2018-04-19 18:04:07 +0000 UTC |\n| 3 | prod-webserver-4   | 10.1.1.11   | 2018-02-15 12:36:45 +0000 UTC |\n| 4 | prod-webserver-5   | 10.1.2.11   | 2018-06-07 15:54:00 +0000 UTC |\n| 5 | prod-webserver-6   | 10.1.3.11   | 2018-06-07 15:54:00 +0000 UTC |\n+---+--------------------+-------------|-------------------------------+\nPick a number: 1\nConnecting to 10.1.2.10 ...\n```\n\n```\n$ sawsh -h\nQuery and connect to ec2 instances\n\nUsage:\n  sawsh [flags]\n  sawsh [command]\n\nAvailable Commands:\n  connect     Connect to an instance\n  help        Help about any command\n  list        List instances\n\nFlags:\n  -d, --debug              Enable debugging\n  -h, --help               help for sawsh\n      --ssm                Try connecting using AWS Service Manager\n  -v, --verbosity string   Log level (debug, info, warn, error, fatal, panic (default \"info\")\n\nUse \"sawsh [command] --help\" for more information about a command.\n\n```\n\n## Install\n\n### Official release\n\nDownload the latest [release](https://github.com/NoUseFreak/sawsh/releases).\n\n```bash\nbrew install nousefreak/brew/sawsh\n```\n\nor using curl\n\n```bash\ncurl -sL http://bit.ly/gh-get | PROJECT=NoUseFreak/sawsh bash\n```\n\n### Build from source\n\n```sh\n$ git clone https://github.com/NoUseFreak/sawsh.git\n$ cd sawsh\n$ make\n$ make install\n```\n\n### Upgrade\n\nTo upgrade to the latest repeat the install step.\n\n## Configure\n\nSetup sure your [aws-cli](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) is setup. That user needs `ec2:Describe*` permissions.\n\n### Suggestion\n\nIt may be useful to setup some aliases if you use multiple aws accounts or want it to run with a non standard profile. \n\n```sh\n$ alias prod_ssh='AWS_PROFILE=prod sawsh'\n```\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FNoUseFreak%2Fsawsh.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FNoUseFreak%2Fsawsh?ref=badge_large)\n","funding_links":["https://www.buymeacoffee.com/driesdepeuter"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnousefreak%2Fsawsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnousefreak%2Fsawsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnousefreak%2Fsawsh/lists"}