make default key type RSA instead of DSA

This commit is contained in:
Adrien Delorme 2020-10-26 15:45:06 +01:00
parent 522d122858
commit b4f68767a3
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (s *StepSSHKeyGen) Run(ctx context.Context, state multistep.StateBag) multi
algorithm := s.SSHTemporaryKeyPair.SSHTemporaryKeyPairType algorithm := s.SSHTemporaryKeyPair.SSHTemporaryKeyPairType
if algorithm == "" { if algorithm == "" {
algorithm = sshkey.DSA.String() algorithm = sshkey.RSA.String()
} }
a, err := sshkey.AlgorithmString(algorithm) a, err := sshkey.AlgorithmString(algorithm)
if err != nil { if err != nil {