Chris Bednarski
0ca03f09c1
Fix some style issues and add a doc to ErrHandshakeTimeout
2015-07-02 11:58:51 -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
8657b1e9d8
communicator/ssh: more logging
2015-06-29 11:40:08 -07:00
Mark Peek
d8b6c94012
Fix typo: diabled -> disabled
2015-06-26 10:52:21 -07:00
Mitchell Hashimoto
a019575026
helper/communicator: support disabling SSH agent
2015-06-23 14:52:37 -07:00
Mitchell Hashimoto
cbaaf0da52
communicator/ssh: support for bastion SSH
2015-06-17 22:10:42 +02:00
Mitchell Hashimoto
49769a17c2
Merge pull request #2243 from mitchellh/f-powershell
...
Windows provisioners: powershell, windows-shell, windows-restart
2015-06-17 17:51:42 +02:00
Mitchell Hashimoto
686d4413ec
communicator/winrm: error if download
2015-06-15 15:08:56 -07:00
Alexander Golovko
8ecca2aa54
implement ssh.Download()
2015-06-15 15:08:18 -07:00
Mitchell Hashimoto
b25b7d1fb2
communicator/winrm: log exit code of processes
2015-06-14 11:19:26 -07:00
Mitchell Hashimoto
6077c796f5
communicator/winrm: fix failing test
2015-06-13 22:10:50 -07:00
Mitchell Hashimoto
7a39758054
helper/communicator: WinRM stuff
2015-06-13 22:05:48 -07:00
Mitchell Hashimoto
0c0f876654
communicator/winrm
2015-06-13 22:00:40 -07:00
Mitchell Hashimoto
acf31c31a1
communicator/ssh: update logging
2015-06-13 19:00:28 -07:00
Mark Peek
b2f8eb68e8
Enable ssh agent forwarding #1066
2015-06-13 17:15:49 -07:00
Mitchell Hashimoto
71d8c6610a
Merge pull request #1968 from bhcleek/master
...
do not request a pty
2015-06-13 16:23:31 -04: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
Billie H. Cleek
2184892f8a
do not request a pty
...
Change the default behavior from requesting a PTY when executing a
command with the ssh communicator to requesting a PTY only when
configured to do so.
Update the vmware builders to be fully backward compatible with the new
behavior.
2015-02-12 20:18:54 -08:00
Tim Cinel
0f36a051d5
Create temporary copy of symlink before uploading, fixes #1765
2014-12-16 14:11:28 +11:00
Mitchell Hashimoto
cc16e19a6b
communicator/ssh: upload proper source [GH-1484]
2014-09-10 14:16:24 -07:00
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto
0d35473d41
communicator/ssh: make TCP keep-alive period shorter [GH-1232]
2014-09-04 11:24:01 -07:00
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Mitchell Hashimoto
a629f1655b
communicator/ssh: remove background connection checker
...
Updated SSH package is supposed to be able to detect remote connection
closes now, which is nice.
2014-04-28 15:25:59 -07:00
Mitchell Hashimoto
b24fe263da
communicator/ssh: fix bad imports
2014-04-26 11:19:37 -07:00
Mitchell Hashimoto
5fac6c79c4
fmt
2014-04-26 11:12:43 -07:00
Mitchell Hashimoto
e84e5e4f2c
Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
...
Conflicts:
builder/amazon/common/ssh.go
builder/digitalocean/ssh.go
builder/googlecompute/ssh.go
builder/openstack/ssh.go
communicator/ssh/communicator_test.go
communicator/ssh/keychain.go
communicator/ssh/keychain_test.go
2014-04-26 11:12:06 -07:00
higebu
f087ce16dc
Fix the build problem by updating ssh package
2014-04-15 10:17:26 +09:00
Ross Smith II
27491f93f8
use old ssh code until higebu's branch is ready, see #1019
2014-04-11 08:23:12 -07:00
Mitchell Hashimoto
8b99ad7a50
communicator/ssh: fix build
2014-02-21 14:51:33 -08:00
Mitchell Hashimoto
9d55fa7f46
communicator/ssh: set TCP keep-alive [GH-872]
2014-02-21 14:46:05 -08:00
Mitchell Hashimoto
2e03dda014
communicator/ssh: fix build
2013-12-10 18:14:02 -08:00
Mitchell Hashimoto
6359245ef8
communicator/ssh: clearer logging [GH-699]
2013-12-10 18:10:15 -08:00
Mitchell Hashimoto
254653475e
communicator/ssh: buffer file on disk to read length [GH-561]
2013-11-02 11:34:54 +01:00
Mitchell Hashimoto
65d391dbeb
communicator/ssh: explicitly set c.conn = nil
2013-10-13 22:21:52 -10:00
Mitchell Hashimoto
f017fd8af9
go fmt
2013-09-30 11:39:52 -07:00
Mitchell Hashimoto
8cdb92e327
communicator/ssh: dir upload works when dir contains symlinks [Gh-449]
2013-09-25 10:42:49 +02:00
Jason A. Beranek
71358222f0
communicator/ssh, builder/digitalocean: fix new SSH API from upstream
2013-09-19 23:30:22 -05:00
Mitchell Hashimoto
9f52b78602
fmt
2013-09-15 23:29:29 -07:00
Mitchell Hashimoto
eaba28a370
communicator/ssh, builder/digitalocean: fix new SSH API from upstream
2013-09-15 12:21:21 -07:00
Mitchell Hashimoto
a9bd78a08f
communicator/ssh: detect if SCP exited with failure [GH-386]
2013-09-05 19:55:09 -07:00
Mitchell Hashimoto
9a6309738a
communicator/ssh: prettify log output
2013-09-05 17:22:37 -07:00
Justin Santa Barbara
253be30bd1
If PKCS1 parsing of the SSH key fails, try PKCS8
2013-08-31 21:54:23 -07:00
Mitchell Hashimoto
a6735b1d65
builder/virtualbox: support ssh keys as auth mechanism [GH-70]
2013-08-27 22:55:13 -07:00
Mitchell Hashimoto
dce369fb1d
communicator/ssh: Reset failure count if heartbeat works
2013-08-27 22:14:31 -07:00
Mitchell Hashimoto
35d0b90f55
communicator/ssh: heartbeat the SSH connection to detect drops [GH-200]
2013-08-27 22:12:21 -07:00
Mitchell Hashimoto
c753946c84
builder/vmware: ability to not request a PTY for SSH [GH-270]
2013-08-27 16:51:05 -07:00