aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh/server.c b/ssh/server.c
index cdc3dbd..96fc09e 100644
--- a/ssh/server.c
+++ b/ssh/server.c
@@ -406,9 +406,9 @@ cleanup:
static void generate_key(const char *outfile) {
ssh_key host_key;
- int ret = ssh_pki_generate(SSH_KEYTYPE_ED25519, 0, &host_key);
+ int ret = ssh_pki_generate(SSH_KEYTYPE_RSA, 4096, &host_key);
if (ret != SSH_OK) {
- fprintf(stderr, "Key generation failed (ed25519)!\n");
+ fprintf(stderr, "Key generation failed (RSA4096)!\n");
exit(1);
}
@@ -423,7 +423,7 @@ static void generate_key(const char *outfile) {
exit(1);
}
- printf("ed25519 host key generated and written to '%s'.\n", outfile);
+ printf("RSA4096 host key generated and written to '%s'.\n", outfile);
}
static void usage(const char *argv0) {