Skip to content

Commit cdbabc9

Browse files
authored
Merge pull request gliderlabs#14 from lalyos/fix-keylength
fix invalid keylength issue
2 parents ff9cab1 + cb13b62 commit cdbabc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func setupHostKey(config *ssh.ServerConfig) {
7676
}
7777
} else {
7878
debug("no host key provided, generating host key")
79-
key, err := rsa.GenerateKey(rand.Reader, 768)
79+
key, err := rsa.GenerateKey(rand.Reader, 1024)
8080
if err != nil {
8181
log.Fatalln("failed key generate:", err)
8282
}

0 commit comments

Comments
 (0)