From c24dd88a1cd403fcdcdccff7058ed3e109d7e60f Mon Sep 17 00:00:00 2001 From: Will Boyce Date: Tue, 16 Jul 2019 15:11:30 +0100 Subject: [PATCH] default to PEM format when calling ssh-keygen Connects-to: #56 Change-type: patch Signed-off-by: Will Boyce --- sshproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshproxy.go b/sshproxy.go index aaa07e3..e92b761 100644 --- a/sshproxy.go +++ b/sshproxy.go @@ -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 }