packer-cn/helper/communicator
Adrien Delorme b24911661f
add sshkey package and ssh-keygen comand (#10101)
* add sshkey.Generate function that returns an sshkey.Pair to be used with openssh.
* add cmd/ssh-keygen/main.go for testing purposes
* add a test calling ssh.ParsePrivateKey & ssh.ParseAuthorizedKey (which is very
   similar to what openssh would do to read a keypair)

The wrapping of the keys should be handled by crypto/x509.MarshalPKCS8PrivateKey 
& x/crypto/ssh.NewPublicKey which does not work for ed25519 and dsa. 
x509.MarshalPKCS8PrivateKey marshals ed25519 keys but the keys did not work with openssh. 
x509.MarshalPKCS8PrivateKey does not handle dsa keys.
So I had to 'wrap' those manually by reading the code of the openssh package.
Note that ssh.NewPublicKey works with any keytype. I should probably do a PR to ssh to have a NewPrivateKey & Marshalling funcs
2020-10-19 10:24:34 +02:00
..
sshkey add sshkey package and ssh-keygen comand (#10101) 2020-10-19 10:24:34 +02:00
comm_host.go allow user to set winrm_host override like we do ssh_host override 2020-01-30 15:22:22 -08:00
config.go fix up documentation for virtualbox key pair ssh options 2020-09-04 16:55:58 -07:00
config.hcl2spec.go ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
config_test.go ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
step_connect.go change pause to run connect again afterwards 2020-08-14 11:23:43 -07:00
step_connect_ssh.go adding basic support for OpenSSH CertificateFile support 2020-07-10 16:54:08 -07:00
step_connect_test.go Revert "Add `winrm_no_proxy` option." 2018-02-08 15:10:53 -08:00
step_connect_winrm.go fix up typos in comments and regenerate docs. 2020-06-16 10:27:30 -07:00
testing.go Add tmp package that offers Dir & File funcs 2018-12-12 16:35:57 +01:00
winrm.go helper/communicator: WinRM stuff 2015-06-13 22:05:48 -07:00