Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: vagrant ssh -c 'bla bla' and vagrant ssh with arguments #56

Closed
seromenho opened this issue Dec 1, 2014 · 3 comments
Closed

Comments

@seromenho
Copy link

Could this be a cool thing. Have the feature of add custom commands that we often use and arguments to ssh.
Use the -c option to run a command or vagrant ssh with arguments.
Samples
vagrant ssh -c 'sudo service memcached restart'
or
vagrant ssh -- -t 'cd /var/local/www && exec $SHELL'

What do you thing?

@seromenho seromenho changed the title vagrant ssh -c 'bla bla' and vagrant ssh with arguments Feature: vagrant ssh -c 'bla bla' and vagrant ssh with arguments Dec 1, 2014
@rarkins
Copy link

rarkins commented Jan 5, 2015

This is a great idea. I'd like to avoid needing people to open vagrant ssh for typical daily routines.

@chriswayoub
Copy link
Member

Version 2.2.0 adds Custom Commands, which lets you execute shell commands on the Vagrant machine over SSH

@seromenho
Copy link
Author

Yey! Thanks 👍
It would also be great to ssh with arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants