18 Commits

Author SHA1 Message Date
hashicorp-copywrite[bot]
36a312ee26
add missing license headers and update copyright file headers to BUS-1.1 2023-08-10 21:53:25 +01:00
Paul Hinze
fda2bcf0cd
Refactor SSHRun action to make room for remote overrides 2022-04-25 12:26:48 -05:00
Jeff Bonhag
7fb7dd8608
Enable WinSSH shell for vagrant ssh -c (#11258)
This commit changes the behavior of the builtin SSHRun action to use a Windows
shell if the WinSSH communicator is active.  This allows for running one-off SSH
commands with Windows Command Prompt or PowerShell.  By default, this will not
allocate a TTY for any SSH commands.

Example usage:

```
vagrant ssh -c 'dir "c:\program files"'
```

Updates docs to reflect a change made in
a55a53e6a46438d5093487f83248f01ddece4534.
2019-12-20 13:10:11 -05:00
Brian Cain
1ade699936 (#6827) Introduce tty flag for ssh command execution
Prior to this commit, if a user ran the `vagrant ssh -c CMD` command, it
would not allow the user to configure pseudo-terminal allocation. This
commit introduces a -t flag for the `vagrant ssh` command which defaults
to true if not specified.
2017-06-02 17:32:02 -07:00
Zack Train
cb70749bd8 redux of pr 7398 for ssh-agent key fix 2016-08-11 11:48:10 -07:00
Seth Vargo
fc1d2c29be Use the same ssh args for ssh with a command as ssh exec 2015-07-10 13:55:00 -06:00
Gilles Cornu
4e81be879c Check SSH key permissions in machine.ssh_info
With this change, any caller of machine.ssh_info is assured that best
efforts will be done to fix possible wrong permissions on the private
key files.

Fix #4652
2014-10-20 17:33:06 +02:00
Mitchell Hashimoto
5bc96ad4bf core: For dev, temporarily use branch of Childprocess, fix Win issue 2014-01-17 09:39:51 -08:00
Mitchell Hashimoto
b8e6fe418f core: forgot to gate one change from last commit to Windows 2014-01-16 22:33:15 -08:00
Mitchell Hashimoto
77c309e91f core: copy STDIN for SSHRun with Subprocess on Windows
The comments explain
2014-01-16 22:31:35 -08:00
Mitchell Hashimoto
dcecb46cbd core: default a value to avoid potential exception in SShRun 2014-01-16 22:08:41 -08:00
Mitchell Hashimoto
92413d0393 core: error if vagrant ssh -c with password 2014-01-03 11:26:41 -08:00
Mitchell Hashimoto
86f8ff8816 core: SSHRun uses new ShellQuote util 2013-12-13 21:18:12 -08:00
Mitchell Hashimoto
902b769e6b core: -t/-T work for vagrant ssh -c [GH-2618] 2013-12-13 21:07:54 -08:00
Mitchell Hashimoto
a55a53e6a4 core: execute SSH commands in context of login shell [GH-2636] 2013-12-13 21:02:00 -08:00
Fabio Rehm
9753f988b0 core: Fix regression caused by recent changes that allowed multiple private keys [GH-907] 2013-11-29 00:19:21 -02:00
Mitchell Hashimoto
f0f8b4e3ee core: use OpenSSH for ssh exec 2013-11-23 17:21:38 -08:00
Mitchell Hashimoto
5e70ad0ec2 vagrant ssh -c now uses a middleware sequence 2012-08-10 00:57:23 -07:00