{"id":17133999,"url":"https://github.com/shkm/vssh","last_synced_at":"2025-08-01T07:03:53.215Z","repository":{"id":69276556,"uuid":"61473517","full_name":"shkm/vssh","owner":"shkm","description":":zap: Fast `vagrant ssh` in the current directory.","archived":false,"fork":false,"pushed_at":"2017-09-23T12:36:25.000Z","size":18,"stargazers_count":28,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T15:57:54.245Z","etag":null,"topics":["shell","ssh","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/shkm.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,"zenodo":null}},"created_at":"2016-06-19T09:41:00.000Z","updated_at":"2024-09-26T10:59:34.000Z","dependencies_parsed_at":"2023-02-24T11:30:46.417Z","dependency_job_id":null,"html_url":"https://github.com/shkm/vssh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fvssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fvssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fvssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fvssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shkm","download_url":"https://codeload.github.com/shkm/vssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688542,"owners_count":21145763,"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":["shell","ssh","vagrant"],"created_at":"2024-10-14T19:43:31.972Z","updated_at":"2025-04-13T08:52:25.764Z","avatar_url":"https://github.com/shkm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vssh\n\nA faster, funkier alternative to `vagrant ssh`.\n\n## Install\n\n### [Dobbin](https://github.com/shkm/dobbin)\n```\ndobbin add https://github.com/shkm/vssh vssh\n```\n\n### Homebrew\n\n```\nbrew install shkm/brew/vssh\n```\n\n### Generic\nCopy or symlink `vssh` to a place in your path.\n\n\n## Features\n\n### Fast\n\n`vagrant ssh` is slow. `vssh` is fast.\n\nOn my 2014 Macbook Air:\n\n```\n$ time vssh\nvssh  0.02s user 0.01s system\n\n$ time vagrant ssh\nvagrant ssh  2.18s user 0.43s system\n```\n\n### Contextual\n\n`vssh` figures out which directory it should be in after SSHing into the box.\n\nEasiest way to describe this is with an example. Assuming vagrant user is `vagrant` and your project's route is synced to `/vagrant`:\n\n```\n$ pwd\nmy_vagrant_project/foo/bar\n\n$ vagrant ssh\n$ pwd\n/home/vagrant\n\n$ vssh\n$ pwd\n/vagrant/foo/bar\n```\n\n### Convenient\n\nOh, yeah, you can just throw a command at `vssh` and it'll execute inside the box without leaving you there. This uses a login shell and same directory rules as plain old `vssh`.\n\n```\n$ uname\nDarwin\n\n$ vssh uname\nLinux\n```\n\n\n## Shell\nYou might find the following shell functions useful in combination with vssh.\n\n- `v` and `v ssh`  will SSH into the machine with vssh\n- `v \u003ccommand\u003e` will run the command inside the machine with vssh\n- `v \u003cvagrant command\u003e` will run the command against vagrant (e.g. `v up` or `v status`).\n\n### zsh\nGrab the function [here](https://github.com/shkm/vssh/blob/master/functions/v.zsh).\n\n### fish\nGrab the function [here](https://github.com/shkm/vssh/blob/master/functions/v.fish). Better yet, install with [fisherman](https://github.com/fisherman/fisherman): `fisher install shkm/vssh`.\n\n## Details\n\nEither run `vssh` or `vssh some_command` to ssh into the box or run a command inside it, respectively. `vssh --help` is always available.\n\nvssh generates two files: `.vagrant/ssh_config` and `.vagrant/vssh.cfg`.\n\n### `ssh_config`\n\n`ssh_config` is populated if not found (this actually calls vagrant, and is therefore slow). if your box's ssh config changes, you can refresh this with `vssh --refresh`.\n\n### `vssh.cfg`\n`vssh.cfg` is generated interactively if not found. Currently the only required option is the root directory you'd like to be dumped into relative to your host directory.\n\nAssuming your main synced folder (`.`) is mounted at `/vagrant`, you'd set the root directory to `/vagrant`.\n\nTo re-run `vssh.cfg` generation, execute `vssh --generate`\n\n\n## Inspiration\n- Too much waiting\n- A repo with projects as submodules\n- [vassh](https://github.com/xwp/vassh)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkm%2Fvssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshkm%2Fvssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkm%2Fvssh/lists"}