diff --git a/pkg/sshutil/sshutil.go b/pkg/sshutil/sshutil.go index 0c636b7..c1b0300 100644 --- a/pkg/sshutil/sshutil.go +++ b/pkg/sshutil/sshutil.go @@ -140,6 +140,9 @@ func SSHOpts(instDir string, useDotSSH, forwardAgent bool) ([]string, error) { if err != nil { return nil, err } + + //Run generation of public keys, so it can be used in common opts + _, _ = DefaultPubKeys(true) opts, err := CommonOpts(useDotSSH) if err != nil { return nil, err