builder/linode: remove unused sshConfig() function and associated import
This commit is contained in:
parent
fcb65ee422
commit
9dad09b9d3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue