{"id":17501363,"url":"https://github.com/vinc/closh","last_synced_at":"2026-04-17T13:32:11.811Z","repository":{"id":137712898,"uuid":"106316644","full_name":"vinc/closh","owner":"vinc","description":"🖥️ Get a shell running in the cloud in seconds","archived":false,"fork":false,"pushed_at":"2018-07-28T13:36:30.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T00:48:50.116Z","etag":null,"topics":["cloud","shell"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/vinc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-09T17:53:52.000Z","updated_at":"2020-01-27T19:12:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c81e6083-15db-457f-a03b-310e794fbbba","html_url":"https://github.com/vinc/closh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vinc/closh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fclosh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fclosh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fclosh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fclosh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinc","download_url":"https://codeload.github.com/vinc/closh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fclosh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["cloud","shell"],"created_at":"2024-10-19T19:45:17.592Z","updated_at":"2026-04-17T13:32:11.788Z","avatar_url":"https://github.com/vinc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cloud Shell\n===========\n\n[![Gem](https://img.shields.io/gem/v/closh.svg)](https://rubygems.org/gems/closh)\n[![Travis branch](https://img.shields.io/travis/vinc/closh/master.svg)](https://travis-ci.org/vinc/closh/branches)\n[![Gemnasium](https://img.shields.io/gemnasium/vinc/closh.svg)](https://gemnasium.com/github.com/vinc/closh)\n\nGet a shell running in the cloud in seconds\n\n[![asciicast](https://asciinema.org/a/146126.png)](https://asciinema.org/a/146126)\n\n\nInstallation\n------------\n\n    $ gem install closh\n\nAlternatively you can build the gem from its repository:\n\n    $ git clone git://github.com/vinc/closh.git\n    $ cd closh\n    $ gem build closh.gemspec\n    $ gem install closh-0.0.1.gem\n\n\nUsage\n-----\n\nRun a command in the cloud:\n\n    $ closh -x \"cut -d . -f 1 /proc/uptime\"\n    23\n\nMore verbose:\n\n    $ closh -vx \"cut -d . -f 1 /proc/uptime\"\n    debug: uploading SSH public key to AWS ...\n    debug: creating server on AWS ...\n    debug: connecting to 'ubuntu@158.116.77.89' ...\n    debug: executing command 'cut -d . -f 1 /proc/uptime' ...\n    23\n    debug: destroying server ...\n\nPipe to stdin:\n\n    $ echo \"cut -d . -f 1 /proc/uptime\" | closh -x \"bash -s\"\n\nRun a script remotely:\n\n    $ closh -x \"bash -s\" \u003c example.sh\n\nSkip the `-x` flag to keep a session alive for long running scripts.\n\nUse `-l` to list sessions and `-r` to resume one:\n\n    $ closh -r 158.116.77.89 \"tail -f screenlog.0\"\n\nMore options:\n\n    $ closh -h\n    Usage: closh \u003ccommand\u003e\n\n    Cloud Shell v0.0.1\n    Options:\n      -n, --dry-run       Create fake server and run locally\n      -c, --config=\u003cs\u003e    Config file (default: ~/.closh.yml)\n      -k, --key=\u003cs\u003e       SSH public key (default: ~/.ssh/id_rsa.pub)\n      -r, --resume=\u003cs\u003e    Resume session\n      -x, --kill          Kill session at the end\n      -l, --list          List sessions\n      -v, --verbose       Use verbose mode\n      -h, --help          Show this message\n      -V, --version       Print version and exit\n\n\nConfigure\n---------\n\nCloud Shell is based on [Fog](http://fog.io/) under the hood to create compute\nservers.\n\nThe configuration is stored in a YAML file (`~/.closh.yml`). It is divided in\ntwo parts: compute and server. The former being fed to `Fog::Compute.new` and\nthe latter to `Fog::Compute::*::Server.new`.\n\n```yaml\n---\n\ncompute:\n  provider: AWS\n  aws_access_key_id: \u003c%= ENV[\"AWS_ACCESS_KEY_ID\"] %\u003e\n  aws_secret_access_key: \u003c%= ENV[\"AWS_SECRET_ACCESS_KEY\"] %\u003e\n  region: us-east-1\n\nserver:\n  image_id: ami-b04847cf # Ubuntu 18.04 LTS\n  flavor_id: t2.micro\n  username: ubuntu\n  groups:\n    - default\n    - ssh\n```\n\n\nLicense\n-------\n\nCopyright (c) 2017-2018 Vincent Ollivier. Released under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinc%2Fclosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinc%2Fclosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinc%2Fclosh/lists"}