From 9dad09b9d370e9da07de58d0a0d91ea1e3a45c35 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 1 Nov 2019 18:58:14 -0700 Subject: [PATCH] builder/linode: remove unused sshConfig() function and associated import --- builder/linode/ssh.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/builder/linode/ssh.go b/builder/linode/ssh.go index 8f291c450..5142da9a6 100644 --- a/builder/linode/ssh.go +++ b/builder/linode/ssh.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/packer/helper/multistep" "github.com/linode/linodego" - "golang.org/x/crypto/ssh" ) func commHost(host string) func(multistep.StateBag) (string, error) { @@ -23,13 +22,3 @@ func commHost(host string) func(multistep.StateBag) (string, error) { return instance.IPv4[0].String(), nil } } - -func sshConfig(state multistep.StateBag) (*ssh.ClientConfig, error) { - return &ssh.ClientConfig{ - User: "root", - HostKeyCallback: ssh.InsecureIgnoreHostKey(), - Auth: []ssh.AuthMethod{ - ssh.Password(state.Get("root_pass").(string)), - }, - }, nil -}