Skip to content

Commit

Permalink
Merge pull request #57 from balena-io/keygen-pem
Browse files Browse the repository at this point in the history
default to PEM format when calling ssh-keygen
  • Loading branch information
wrboyce authored Jul 16, 2019
2 parents 9ebbea4 + c24dd88 commit 9033dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *Server) addHostKey(keyType string) error {
if s.verbosity >= 1 {
log.Printf("Generating private key... (%s)", keyType)
}
err := exec.Command("ssh-keygen", "-f", keyPath, "-t", keyType, "-N", "").Run()
err := exec.Command("ssh-keygen", "-f", keyPath, "-t", keyType, "-N", "", "-m", "PEM").Run()
if err != nil {
return err
}
Expand Down

0 comments on commit 9033dbd

Please sign in to comment.