Adrien Delorme
f555e7a9f2
allow a provisioner to timeout
...
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
Roger Shimizu
28ee60d216
handle ABI change of golang-golang-x-crypto-dev
...
That ABI change was due to CVE security fix
Fix is picked from upstream of golang-golang-x-crypto-dev:
e4e2799dd7
Closes : #861282
2017-05-14 23:54:04 +09:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Chris Bednarski
5dd8ae45c7
Cleanup some resources we may have created
2015-07-02 03:55:18 -07:00
Chris Bednarski
03850cafc6
Implemented timeout around the SSH handshake, including a unit test
2015-07-02 03:40:47 -07:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
jszwedko
b1497b951c
code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
...
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6
Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.
This is a precursor to a PR for #1066 .
2015-05-28 08:17:49 -07:00
Emil Hessman
c4d4e0a21f
communicator/ssh: bind variable value to closure
...
Fixes the following vet report:
communicator/ssh/communicator_test.go:88: range variable newChannel captured by func literal
2015-02-25 05:43:18 +01:00
higebu
f087ce16dc
Fix the build problem by updating ssh package
2014-04-15 10:17:26 +09:00
Mitchell Hashimoto
c2451e9f49
communicator/ssh: get data race tests passing
2013-08-21 11:05:21 -07:00
Mitchell Hashimoto
2fff555e7f
fmt
2013-07-14 20:55:27 +09:00
Mitchell Hashimoto
9718a4656c
communicator/ssh: have a Connection func so we can re-establish
...
[GH-152]
2013-07-14 20:22:57 +09:00
Mitchell Hashimoto
1e61cc2bd3
communicator/ssh: request a PTY
2013-06-23 17:36:45 -07:00
Mitchell Hashimoto
1cea606f12
communicator/ssh: Adhere to new Communicator interface
2013-06-02 23:27:01 -07:00
Mitchell Hashimoto
15f215d04f
go fmt
2013-05-20 16:50:35 -07:00
Mitchell Hashimoto
bee266008e
communicator/ssh: Ensure valid communicator
2013-05-20 15:52:34 -07:00
Mitchell Hashimoto
6d3e7e9964
communicator/ssh: Simplify tests
2013-05-20 15:49:14 -07:00
Mitchell Hashimoto
08ac912cb7
Start work on SSH communicator
2013-05-20 15:47:41 -07:00