From 45925657fc47b7a4da4cd298055dea7e2eef71f2 Mon Sep 17 00:00:00 2001 From: Mikhail Ushanov Date: Tue, 6 Nov 2018 22:01:41 +0300 Subject: [PATCH] communicator/ssh: make ssh keys payload internal Signed-off-by: Mikhail Ushanov --- helper/communicator/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helper/communicator/config.go b/helper/communicator/config.go index 61424a2a5..71e40daac 100644 --- a/helper/communicator/config.go +++ b/helper/communicator/config.go @@ -28,8 +28,6 @@ type Config struct { SSHPort int `mapstructure:"ssh_port"` SSHUsername string `mapstructure:"ssh_username"` SSHPassword string `mapstructure:"ssh_password"` - SSHPublicKey []byte `mapstructure:"ssh_public_key"` - SSHPrivateKey []byte `mapstructure:"ssh_private_key"` SSHKeyPairName string `mapstructure:"ssh_keypair_name"` SSHTemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"` SSHClearAuthorizedKeys bool `mapstructure:"ssh_clear_authorized_keys"` @@ -54,6 +52,9 @@ type Config struct { SSHProxyPassword string `mapstructure:"ssh_proxy_password"` SSHKeepAliveInterval time.Duration `mapstructure:"ssh_keep_alive_interval"` SSHReadWriteTimeout time.Duration `mapstructure:"ssh_read_write_timeout"` + // SSH Internals + SSHPublicKey []byte + SSHPrivateKey []byte // WinRM WinRMUser string `mapstructure:"winrm_username"`