vagrant ssh
vagrant ssh -c ls
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1d3aa196-5458-4482-962f-ca3750be3d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> vagrant ssh -c 'ls -al'
vagrant@www:~$ ls -al
total 40
drwxr-xr-x 4 vagrant vagrant 4096 Sep 4 11:03 .
drwxr-xr-x 4 root root 4096 Sep 3 17:26 ..
-rw------- 1 vagrant vagrant 111 Sep 4 11:06 .bash_history
-rw-r--r-- 1 vagrant vagrant 220 Jan 15 2017 .bash_logout
-rw-r--r-- 1 vagrant vagrant 3486 Jan 15 2017 .bashrc
drwx------ 2 vagrant vagrant 4096 Jan 15 2017 .cache
-rw-r--r-- 1 vagrant vagrant 773 Jan 15 2017 .profile
-rw-rw-r-- 1 vagrant vagrant 17 Jan 15 2017 shutdown.sh
drwx------ 2 vagrant root 4096 Sep 3 17:25 .ssh
-rw-r--r-- 1 vagrant vagrant 6 Jan 15 2017 .vbox_version
vagrant@www:~$ exit
Connection to 127.0.0.1 closed.
>
vagrant ssh -c 'ls -al'Alvaro
On Fri, Sep 1, 2017 at 4:43 PM, Brandon Sussman <webste...@gmail.com> wrote:
vagrant ssh
works - connects me as user vagrant
vagrant ssh -c lsdoes the exact same thing - connects me as user vagrant, does not execute the command.Why?Verbatim from doc: This should 'execute a single SSH command, prints out the stdout and stderr, and exit'.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1d3aa196-5458-4482-962f-ca3750be3d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/74e2886b-7e7c-469c-823e-c42bf16e4211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/74e2886b-7e7c-469c-823e-c42bf16e4211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro